Enum bip351::AddressType
source · #[repr(u8)]
pub enum AddressType {
P2pkh,
P2wpkh,
P2tr,
}
Expand description
Address types supported by the standard.
Variants§
Implementations§
source§impl AddressType
impl AddressType
sourcepub fn to_address<C: Verification>(
&self,
secp: &Secp256k1<C>,
pubkey: &PublicKey,
network: Network
) -> Address
pub fn to_address<C: Verification>(
&self,
secp: &Secp256k1<C>,
pubkey: &PublicKey,
network: Network
) -> Address
Construct an address from address type and pubkey.
Trait Implementations§
source§impl Clone for AddressType
impl Clone for AddressType
source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
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 more