pub trait SignatureDerive: Signature {
const MIN_SEED_SIZE: usize;
// Required methods
fn derive_keypair(seed: &[u8]) -> Result<Self::KeyPair>;
fn derive_public_key(
secret_key: &Self::SecretKey,
) -> Result<Self::PublicKey>;
}
Expand description
Optional trait for signature algorithms that support key derivation
This trait is for algorithms that can derive keys from seed material in a deterministic way.
Required Associated Constants§
Sourceconst MIN_SEED_SIZE: usize
const MIN_SEED_SIZE: usize
Minimum seed size in bytes
Required Methods§
Sourcefn derive_keypair(seed: &[u8]) -> Result<Self::KeyPair>
fn derive_keypair(seed: &[u8]) -> Result<Self::KeyPair>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.