Module keypair

Source
Available on crate feature full only.

Modules§

null_signer
signers

Structs§

Keypair
A vanilla Ed25519 key pair

Enums§

PresignerError
SignerError

Traits§

EncodableKey
The EncodableKey trait defines the interface by which cryptographic keys/keypairs are read, written, and derived from sources.
EncodableKeypair
The EncodableKeypair trait extends EncodableKey for asymmetric keypairs, i.e. have associated public keys.
Signer
The Signer trait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified in Transaction signing interfaces

Functions§

generate_seed_from_seed_phrase_and_passphrase
keypair_from_seed
Constructs a Keypair from caller-provided seed entropy
keypair_from_seed_and_derivation_path
Generates a Keypair using Bip32 Hierarchical Derivation if derivation-path is provided; otherwise generates the base Bip44 Solana keypair from the seed
keypair_from_seed_phrase_and_passphrase
read_keypair
Reads a JSON-encoded Keypair from a Reader implementor
read_keypair_file
Reads a Keypair from a file
unique_signers
Removes duplicate signers while preserving order. O(n²)
write_keypair
Writes a Keypair to a Write implementor with JSON-encoding
write_keypair_file
Writes a Keypair to a file with JSON-encoding