decode_address
Decodes a Bitcoin address from ByteArray to a BitcoinAddress type.
This function decodes a Bitcoin address based on the specified address type, validates the checksum, and returns a complete BitcoinAddress structure.
Arguments
address- The Bitcoin address as a ByteArrayaddress_type- The type of Bitcoin address to decode
Returns
BitcoinAddress- Complete address structure with decoded data and script_pubkey
Fully qualified path: alexandria_btc::address::decode_address
pub fn decode_address(address: ByteArray, address_type: BitcoinAddressType) -> BitcoinAddress