Returns the next public key in rotation. Each call rotates to the next key, enabling parallel transaction creation where each transaction gets a different key.
ProtectedsignImplement this method to sign given bytes payload.
Signs a delegate action using the key that matches the action's public key. This ensures parallel meta-transactions each get signed with the correct key.
Signs a NEP-413 message using the first key in the set. This is because NEP-413 messages are not typically parallelized, so we use a consistent key for signing.
Signs a transaction using the key that matches the transaction's public key. This ensures parallel transactions each get signed with the correct key.
StaticfromCreates a rotating signer from local secret keys.
Nonempty array of curve-prefixed Base58 secret keys.
A signer holding the imported keys in memory.
Signs using Multiple Keys, rotating through them for parallel transaction signing.
This signer is designed for high-throughput scenarios where you want to sign multiple transactions in parallel using different keys (to avoid nonce conflicts).
Example