decodeAddr method
Overrides the base class method to decode a P2SH (Pay-to-Script-Hash) address.
This method delegates the decoding process to the P2PKHAddrDecoder class, which
specializes in decoding P2SH addresses. It expects the provided address and
an optional map of keyword arguments. The decoded P2SH address is returned as a List<int>
.
Parameters:
- addr: The P2SH address to be decoded.
- kwargs: Optional keyword arguments for customization (not used in this implementation).
Returns:
A List<int>
containing the decoded P2SH address bytes.
Implementation
@override
List<int> decodeAddr(String addr, [Map<String, dynamic> kwargs = const {}]) {
return P2PKHAddrDecoder().decodeAddr(addr, kwargs);
}