iaddr_decoder
Module with interface for address encoding classes.
- class IAddrDecoder
Bases:
ABC
Address decoder interface.
- abstract static DecodeAddr(addr: str, **kwargs: Any) bytes
Decode an address to bytes. Depending on the coin, the result can be a public key or a public key hash bytes.
- Parameters:
addr (str) – Address string
**kwargs – Arbitrary arguments depending on the address type
- Returns:
Public key bytes or public key hash
- Return type:
bytes
- Raises:
ValueError – If the address encoding is not valid