bpstd

Trait DeriveScripts

Source
pub trait DeriveScripts: Derive<DerivedScript> {
    // Provided methods
    fn derive_address(
        &self,
        network: AddressNetwork,
        keychain: impl Into<Keychain>,
        index: impl Into<NormalIndex>,
    ) -> Result<Address, AddressError> { ... }
    fn derive_address_batch(
        &self,
        network: AddressNetwork,
        keychain: impl Into<Keychain>,
        from: impl Into<NormalIndex>,
        max_count: u8,
    ) -> Result<Vec<Address>, AddressError> { ... }
}

Provided Methods§

Source

fn derive_address( &self, network: AddressNetwork, keychain: impl Into<Keychain>, index: impl Into<NormalIndex>, ) -> Result<Address, AddressError>

Source

fn derive_address_batch( &self, network: AddressNetwork, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, max_count: u8, ) -> Result<Vec<Address>, AddressError>

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.

Implementors§