pub trait GeneratableDefaultOptions<Ctx>: GeneratableKey<Ctx>where
    Ctx: ScriptContext,
    <Self as GeneratableKey<Ctx>>::Options: Default,
{ fn generate_with_entropy_default(
        entropy: Self::Entropy
    ) -> Result<GeneratedKey<Self, Ctx>, Self::Error> { ... } fn generate_default() -> Result<GeneratedKey<Self, Ctx>, Self::Error> { ... } }
Expand description

Trait that allows generating a key with the default options

This trait is automatically implemented if the GeneratableKey::Options implements Default.

Provided Methods

Generate a key with the default options and a given entropy

Generate a key with the default options and a random entropy

Implementors

Automatic implementation of GeneratableDefaultOptions for GeneratableKeys where Options implements Default