[][src]Struct elements::address::AddressParams

pub struct AddressParams {
    pub p2pkh_prefix: u8,
    pub p2sh_prefix: u8,
    pub blinded_prefix: u8,
    pub bech_hrp: &'static str,
    pub blech_hrp: &'static str,

The parameters to derive addresses.


p2pkh_prefix: u8

The base58 prefix for p2pkh addresses.

p2sh_prefix: u8

The base58 prefix for p2sh addresses.

blinded_prefix: u8

The base58 prefix for blinded addresses.

bech_hrp: &'static str

The bech32 HRP for unblinded segwit addresses.

blech_hrp: &'static str

The bech32 HRP for blinded segwit addresses.


impl AddressParams[src]

pub const LIQUID: AddressParams[src]

The Liquid network address parameters.

pub const ELEMENTS: AddressParams[src]

The default Elements network address parameters.

Trait Implementations

impl Clone for AddressParams[src]

impl Debug for AddressParams[src]

impl Eq for AddressParams[src]

impl Hash for AddressParams[src]

impl Ord for AddressParams[src]

impl PartialEq<AddressParams> for AddressParams[src]

impl PartialOrd<AddressParams> for AddressParams[src]

impl StructuralEq for AddressParams[src]

impl StructuralPartialEq for AddressParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.