Create a new keypair instance. Generate random keypair if no Secp256k1Keypair is provided.
Optional
keypair: Secp256k1KeypairDatasecp256k1 keypair
Get the key scheme of the keypair Secp256k1
Signs provided transaction by calling signWithIntent()
with a TransactionData
provided as intent scope
Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing, it ensures that a signed message is tied to a specific purpose and domain separator is provided
Static
deriveDerive Secp256k1 keypair from mnemonics and path. The mnemonics must be normalized and validated against the english wordlist.
If path is none, it will default to m/54'/784'/0'/0/0, otherwise the path must be compliant to BIP-32 in form m/54'/784'/{account_index}'/{change_index}/{address_index}.
Optional
path: stringStatic
fromCreate a keypair from a raw secret key byte array.
This method should only be used to recreate a keypair from a previously generated secret key. Generating keypairs from a random seed should be done with the Keypair.fromSeed method.
secret key byte array or Bech32 secret key string
Optional
options: { Optional
skipStatic
fromGenerate a keypair from a 32 byte seed.
seed byte array
Static
generateGenerate a new random keypair
An Secp256k1 Keypair used for signing transactions.