Expand description
Functionality for public and private keys.
Modules§
- keypair
full
- null_signer
full
- presigner
full
- signers
full
Structs§
- A vanilla Ed25519 key pair
- NullSigner - A
Signer
implementation that always producesSignature::default()
. Used as a placeholder for absentee signers whose ’Pubkey` is required to construct the transaction - A
Signer
implementation that represents aSignature
that has been constructed externally. Performs a signature verification against the expected message uponsign()
requests to affirm its relationship to themessage
bytes
Enums§
Constants§
- Number of bytes in a signature
Traits§
- The
EncodableKey
trait defines the interface by which cryptographic keys/keypairs are read, written, and derived from sources. - The
EncodableKeypair
trait extendsEncodableKey
for asymmetric keypairs, i.e. have associated public keys. - The
SeedDerivable
trait defines the interface by which cryptographic keys/keypairs are derived from byte seeds, derivation paths, and passphrases. - The
Signer
trait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransaction
signing interfaces
Functions§
- Constructs a
Keypair
from caller-provided seed entropy - Generates a Keypair using Bip32 Hierarchical Derivation if derivation-path is provided; otherwise generates the base Bip44 Solana keypair from the seed
- Reads a JSON-encoded
Keypair
from aReader
implementor - Reads a
Keypair
from a file - Removes duplicate signers while preserving order. O(n²)
- Writes a
Keypair
to aWrite
implementor with JSON-encoding - Writes a
Keypair
to a file with JSON-encoding