[−][src]Trait bitcoincash_addr::AddressCodec
A trait providing an interface for encoding and decoding the Address
struct
for each address scheme.
Required methods
fn encode(
raw: &[u8],
hash_type: HashType,
network: Network
) -> Result<String, AddressError>
raw: &[u8],
hash_type: HashType,
network: Network
) -> Result<String, AddressError>
Attempt to convert the raw address bytes to a string
fn decode(s: &str) -> Result<Address, AddressError>
Attempt to convert the address string to bytes
Implementors
impl AddressCodec for Base58Codec
[src]
fn encode(
raw: &[u8],
hash_type: HashType,
network: Network
) -> Result<String, AddressError>
[src]
raw: &[u8],
hash_type: HashType,
network: Network
) -> Result<String, AddressError>