pub struct ByronAddress(/* private fields */);
Implementations§
Source§impl ByronAddress
impl ByronAddress
pub fn to_base58(&self) -> String
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(bytes: Vec<u8>) -> Result<ByronAddress, JsError>
Sourcepub fn byron_protocol_magic(&self) -> u32
pub fn byron_protocol_magic(&self) -> u32
returns the byron protocol magic embedded in the address, or mainnet id if none is present note: for bech32 addresses, you need to use network_id instead
pub fn byron_address_kind(&self) -> ByronAddressType
pub fn attributes(&self) -> Vec<u8> ⓘ
pub fn network_id(&self) -> Result<u8, JsError>
pub fn from_base58(s: &str) -> Result<ByronAddress, JsError>
pub fn icarus_from_key( key: &Bip32PublicKey, protocol_magic: u32, ) -> ByronAddress
pub fn is_valid(s: &str) -> bool
pub fn to_address(&self) -> Address
pub fn from_address(addr: &Address) -> Option<ByronAddress>
Trait Implementations§
Source§impl Clone for ByronAddress
impl Clone for ByronAddress
Source§fn clone(&self) -> ByronAddress
fn clone(&self) -> ByronAddress
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 ByronAddress
impl Debug for ByronAddress
Source§impl Ord for ByronAddress
impl Ord for ByronAddress
Source§fn cmp(&self, other: &ByronAddress) -> Ordering
fn cmp(&self, other: &ByronAddress) -> 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 ByronAddress
impl PartialEq for ByronAddress
Source§impl PartialOrd for ByronAddress
impl PartialOrd for ByronAddress
impl Eq for ByronAddress
impl StructuralPartialEq for ByronAddress
Auto Trait Implementations§
impl Freeze for ByronAddress
impl RefUnwindSafe for ByronAddress
impl Send for ByronAddress
impl Sync for ByronAddress
impl Unpin for ByronAddress
impl UnwindSafe for ByronAddress
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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