iaddr_encoder
Module with interface for address encoding classes.
- class IAddrEncoder
Bases:
ABC
Address encoder interface.
- abstract static EncodeKey(pub_key: Union[bytes, IPublicKey], **kwargs: Any) str
Encode public key to address.
- Parameters:
pub_key (bytes or IPublicKey) – Public key bytes or object
**kwargs – Arbitrary arguments depending on the address type
- Returns:
Address string
- Return type:
str
- Raised:
ValueError: If the public key is not valid TypeError: If the public key is not of the correct type (it depends on the address type)