Struct jormungandr_lib::crypto::account::Identifier
source · pub struct Identifier(Identifier<AccountAlg>);
Expand description
Account identifier, used to identify an account. Cryptographically linked
to the account SigningKey
.
Tuple Fields§
§0: Identifier<AccountAlg>
Implementations§
source§impl Identifier
impl Identifier
sourcepub fn to_address(&self, discrimination: Discrimination) -> Address
pub fn to_address(&self, discrimination: Discrimination) -> Address
get the address associated to this account identifier
sourcepub fn to_inner(&self) -> Identifier
pub fn to_inner(&self) -> Identifier
retrieve the underlying account identifer as used in the library so you can perform the relevant operations on transaction or the ledger.
pub fn to_bech32_str(&self) -> String
pub fn from_bech32_str(s: &str) -> Result<Self, Error>
pub fn to_hex(&self) -> String
pub fn from_hex(s: &str) -> Result<Self, PublicKeyFromStrError>
Trait Implementations§
source§impl AsRef<PublicKey<Ed25519>> for Identifier
impl AsRef<PublicKey<Ed25519>> for Identifier
source§impl Clone for Identifier
impl Clone for Identifier
source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
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 Identifier
impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Identifier
impl Display for Identifier
source§impl From<Identifier<Ed25519>> for Identifier
impl From<Identifier<Ed25519>> for Identifier
source§fn from(identifier: Identifier<AccountAlg>) -> Self
fn from(identifier: Identifier<AccountAlg>) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for Identifier
impl From<Identifier> for Identifier
source§impl From<PublicKey<Ed25519>> for Identifier
impl From<PublicKey<Ed25519>> for Identifier
source§impl FromStr for Identifier
impl FromStr for Identifier
source§impl Hash for Identifier
impl Hash for Identifier
source§impl Ord for Identifier
impl Ord for Identifier
source§fn cmp(&self, other: &Identifier) -> Ordering
fn cmp(&self, other: &Identifier) -> 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<Identifier> for Identifier
impl PartialEq<Identifier> for Identifier
source§fn eq(&self, other: &Identifier) -> bool
fn eq(&self, other: &Identifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Identifier> for Identifier
impl PartialOrd<Identifier> for Identifier
source§fn partial_cmp(&self, other: &Identifier) -> Option<Ordering>
fn partial_cmp(&self, other: &Identifier) -> 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 moresource§impl Serialize for Identifier
impl Serialize for Identifier
impl Eq for Identifier
impl StructuralEq for Identifier
impl StructuralPartialEq for Identifier
Auto Trait Implementations§
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
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