Struct elements::address::AddressParams
source · pub struct AddressParams {
pub p2pkh_prefix: u8,
pub p2sh_prefix: u8,
pub blinded_prefix: u8,
pub bech_hrp: Hrp,
pub blech_hrp: Hrp,
}
Expand description
The parameters to derive addresses.
Fields§
§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: Hrp
The bech32 HRP for unblinded segwit addresses.
blech_hrp: Hrp
The bech32 HRP for blinded segwit addresses.
Implementations§
source§impl AddressParams
impl AddressParams
sourcepub const LIQUID: AddressParams = _
pub const LIQUID: AddressParams = _
The Liquid network address parameters.
sourcepub const ELEMENTS: AddressParams = _
pub const ELEMENTS: AddressParams = _
The default Elements network address parameters.
sourcepub const LIQUID_TESTNET: AddressParams = _
pub const LIQUID_TESTNET: AddressParams = _
The default liquid testnet network address parameters.
Trait Implementations§
source§impl Clone for AddressParams
impl Clone for AddressParams
source§fn clone(&self) -> AddressParams
fn clone(&self) -> AddressParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AddressParams
impl Debug for AddressParams
source§impl Hash for AddressParams
impl Hash for AddressParams
source§impl Ord for AddressParams
impl Ord for AddressParams
source§fn cmp(&self, other: &AddressParams) -> Ordering
fn cmp(&self, other: &AddressParams) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AddressParams
impl PartialEq for AddressParams
source§fn eq(&self, other: &AddressParams) -> bool
fn eq(&self, other: &AddressParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AddressParams
impl PartialOrd for AddressParams
source§fn partial_cmp(&self, other: &AddressParams) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressParams) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for AddressParams
impl StructuralPartialEq for AddressParams
Auto Trait Implementations§
impl RefUnwindSafe for AddressParams
impl Send for AddressParams
impl Sync for AddressParams
impl Unpin for AddressParams
impl UnwindSafe for AddressParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more