pub struct Address(pub Byte32);
Expand description
Represents an Algorand address as decoded bytes without the checksum from a 58-character base32 string.
The Address
type stores the 32 bytes of the address (the public key or hash digest),
and provides methods for encoding to and decoding from the standard Algorand base32 string format.
The checksum is automatically calculated and validated as part of parsing and formatting.
Tuple Fields§
§0: Byte32
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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>,
Source§impl From<Address> for KeyPairAccount
impl From<Address> for KeyPairAccount
Source§impl From<KeyPairAccount> for Address
impl From<KeyPairAccount> for Address
Source§fn from(account: KeyPairAccount) -> Address
fn from(account: KeyPairAccount) -> Address
Converts an KeyPairAccount
into an Address
by wrapping its public key.
Source§impl From<MultisigSignature> for Address
impl From<MultisigSignature> for Address
Source§fn from(multisig: MultisigSignature) -> Address
fn from(multisig: MultisigSignature) -> Address
Converts a MultisigSignature
into an Address
by hashing the domain separator,
version, threshold, and all participating addresses.
Source§impl FromStr for Address
impl FromStr for Address
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a 58-character base32 Algorand address string into an Address
instance.
Returns an error if the string is not exactly 58 characters, is not valid base32, or if the checksum does not match.