[][src]Trait bdk::keys::GeneratableDefaultOptions

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

Trait that allows generating a key with the default options

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

Provided methods

pub fn generate_with_entropy_default(
    entropy: Self::Entropy
) -> Result<GeneratedKey<Self, Ctx>, Self::Error>
[src]

Generate a key with the default options and a given entropy

pub fn generate_default() -> Result<GeneratedKey<Self, Ctx>, Self::Error>[src]

Generate a key with the default options and a random entropy

Loading content...

Implementors

impl<Ctx, K> GeneratableDefaultOptions<Ctx> for K where
    Ctx: ScriptContext,
    K: GeneratableKey<Ctx>,
    <K as GeneratableKey<Ctx>>::Options: Default
[src]

Automatic implementation of GeneratableDefaultOptions for GeneratableKeys where Options implements Default

Loading content...