Create a new keypair instance. Generate random keypair if no Ed25519Keypair is provided.
Optionalkeypair: Ed25519Keypaired25519 keypair
The raw secret key for this keypair
Secret key in an array of Uint8 bytes
StaticfromCreate 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
Optionaloptions: { skipValidation?: boolean }skip secret key validation
Keypair
StaticfromStaticgenerate
An account keypair used for signing transactions.