eos_addr
Module for EOS address encoding/decoding.
- class EosAddrConst
Bases:
object
Class container for EOS address constants.
- CHECKSUM_BYTE_LEN: int = 4
- class EosAddrDecoder
Bases:
IAddrDecoder
EOS address decoder class. It allows the EOS address decoding.
- static DecodeAddr(addr: str, **kwargs: Any) bytes
Decode an EOS address to bytes.
- Parameters:
addr (str) – Address string
**kwargs – Not used
- Returns:
Public key bytes
- Return type:
bytes
- Raises:
ValueError – If the address encoding is not valid
- class EosAddrEncoder
Bases:
IAddrEncoder
EOS address encoder class. It allows the EOS address encoding.
- static EncodeKey(pub_key: Union[bytes, IPublicKey], **kwargs: Any) str
Encode a public key to EOS address.
- Parameters:
pub_key (bytes or IPublicKey) – Public key bytes or object
**kwargs – Not used
- Returns:
Address string
- Return type:
str
- Raised:
ValueError: If the public key is not valid TypeError: If the public key is not secp256k1
- EosAddr
alias of
EosAddrEncoder