Sign one or more messages as a Kit MessagePartialSigner.
Declared as an arrow-function field so callers can destructure
(const {signMessages} = keypair) without losing this binding.
Sign one or more transactions as a Kit TransactionPartialSigner.
Declared as an arrow-function field so callers can destructure
(const {signTransactions} = keypair) without losing this binding.
Returns the base-58 address as a Kit-compatible branded Address string.
This property is provided for structural compatibility with
@solana/signers / Kit (so Keypair can be used where a
TransactionSigner is expected).
Most users of this library should use publicKey instead.
The underlying WebCrypto CryptoKeyPair.
Returns this keypair's 64-byte secret key bytes
Sign raw message bytes and return the 64-byte ed25519 signature.
Verify a signature against the provided message using this keypair's public key.
StaticfromCreate a keypair from a raw 64-byte secret key (32-byte private key followed by 32-byte public key).
StaticfromCreate a keypair from a 32-byte seed (private-key bytes).
StaticgenerateGenerate a new random keypair.
An account keypair backed by WebCrypto.
Implements Kit's
KeyPairSigner(and thereforeMessagePartialSignerandTransactionPartialSigner), so instances can be passed directly to Kit APIs and generated program clients that accept aTransactionSignerorKeyPairSigner.