pub enum BatchAddressType {
P2PKH,
P2WPKH,
P2TR,
}Expand description
Supported address types for batch generation.
This enum defines the Bitcoin address types that can be generated in batch operations.
Variants§
P2PKH
Pay-to-Public-Key-Hash (Legacy) - addresses starting with 1 (mainnet)
P2WPKH
Pay-to-Witness-Public-Key-Hash (SegWit) - addresses starting with bc1q (mainnet)
P2TR
Pay-to-Taproot - addresses starting with bc1p (mainnet)
Implementations§
Source§impl BatchAddressType
impl BatchAddressType
Sourcepub fn mainnet_prefix(&self) -> &'static str
pub fn mainnet_prefix(&self) -> &'static str
Returns the address prefix for this type on mainnet.
Sourcepub fn testnet_prefix(&self) -> &'static str
pub fn testnet_prefix(&self) -> &'static str
Returns the address prefix for this type on testnet.
Trait Implementations§
Source§impl Clone for BatchAddressType
impl Clone for BatchAddressType
Source§fn clone(&self) -> BatchAddressType
fn clone(&self) -> BatchAddressType
Returns a duplicate 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 BatchAddressType
impl Debug for BatchAddressType
Source§impl Display for BatchAddressType
impl Display for BatchAddressType
Source§impl Hash for BatchAddressType
impl Hash for BatchAddressType
Source§impl PartialEq for BatchAddressType
impl PartialEq for BatchAddressType
impl Copy for BatchAddressType
impl Eq for BatchAddressType
impl StructuralPartialEq for BatchAddressType
Auto Trait Implementations§
impl Freeze for BatchAddressType
impl RefUnwindSafe for BatchAddressType
impl Send for BatchAddressType
impl Sync for BatchAddressType
impl Unpin for BatchAddressType
impl UnwindSafe for BatchAddressType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more