Create a new keypair instance. Generate random keypair if no Ed25519Keypair is provided.
Optional keypair: Ed25519Keypaired25519 keypair
The raw secret key for this keypair
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: { Optional skiperror if the provided secret key is invalid and validation is not skipped.
Static fromStatic generate
An account keypair used for signing transactions.