Available on crate feature
full
only.Modules§
Structs§
- Keypair
- A vanilla Ed25519 key pair
Enums§
Traits§
- Encodable
Key - The
EncodableKey
trait defines the interface by which cryptographic keys/keypairs are read, written, and derived from sources. - Encodable
Keypair - The
EncodableKeypair
trait extendsEncodableKey
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 inTransaction
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 aReader
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 aWrite
implementor with JSON-encoding - write_
keypair_ file - Writes a
Keypair
to a file with JSON-encoding