Creates an instance of the SingleKeySigner using the provided private key and address. This allows for signing transactions and messages with the specified private key.
The constructor arguments for initializing the SingleKeySigner.
Sign the given message using the account's private key.
The message to be signed in HexInput format.
A new AnySignature containing the signature of the message.
Sign the given transaction using the account's private key. This function generates a signing message for the transaction and then signs it.
The transaction to be signed.
Signature - The resulting signature for the signed transaction.
Sign a transaction using the account's private key. This function returns an AccountAuthenticator that contains the signature of the transaction along with the account's public key.
The raw transaction to be signed.
An AccountAuthenticatorSingleKey containing the signature of the transaction and the account's public key.
Sign a message using the account's private key and return an AccountAuthenticator containing the signature along with the account's public key.
The signing message, represented as binary input in hexadecimal format.
An instance of AccountAuthenticatorSingleKey containing the signature and the public key.
Verify the given message and signature with the public key.
The arguments for verifying the signature.
A boolean indicating whether the signature is valid.
Static
fromDerives an account using a specified BIP44 path and mnemonic seed phrase, defaulting to the Ed25519 signature scheme. This function allows you to create a single key account based on the provided derivation path and mnemonic.
The arguments for deriving the account.
Static
generateDerives an account from a randomly generated private key based on the specified signing scheme. The default generation scheme is Ed25519, but it can also support Secp256k1Ecdsa.
The arguments for generating the account.
An account with the generated private key based on the specified signing scheme.
Signer implementation for the SingleKey authentication scheme. This class extends a SingleKeyAccount by adding signing capabilities through a valid private key. Currently, the only supported signature schemes are Ed25519 and Secp256k1.
Note: Generating a signer instance does not create the account on-chain.