Struct bdk::keys::GeneratedKey [−][src]
pub struct GeneratedKey<K, Ctx: ScriptContext> { /* fields omitted */ }
Expand description
Output of a GeneratableKey
key generation
Implementations
Trait Implementations
impl<Ctx, K> DerivableKey<Ctx> for GeneratedKey<K, Ctx> where
Ctx: ScriptContext,
K: DerivableKey<Ctx>,
impl<Ctx, K> DerivableKey<Ctx> for GeneratedKey<K, Ctx> where
Ctx: ScriptContext,
K: DerivableKey<Ctx>,
Consume self
and turn it into an ExtendedKey
Read more
fn into_descriptor_key(
self,
origin: Option<KeySource>,
derivation_path: DerivationPath
) -> Result<DescriptorKey<Ctx>, KeyError>
fn into_descriptor_key(
self,
origin: Option<KeySource>,
derivation_path: DerivationPath
) -> Result<DescriptorKey<Ctx>, KeyError>
Consume self
and turn it into a DescriptorKey
by adding the extra metadata, such as
key origin and derivation path Read more
impl<Ctx, K> IntoDescriptorKey<Ctx> for GeneratedKey<K, Ctx> where
Ctx: ScriptContext,
K: IntoDescriptorKey<Ctx>,
impl<Ctx, K> IntoDescriptorKey<Ctx> for GeneratedKey<K, Ctx> where
Ctx: ScriptContext,
K: IntoDescriptorKey<Ctx>,
Turn the key into a DescriptorKey
within the requested ScriptContext