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