neo_legacy_addr
Module for Neo legacy address encoding/decoding.
- class NeoLegacyAddrEncoder
Bases:
IAddrEncoderNeo legacy address encoder class. It allows the Neo legacy address encoding.
- static EncodeKey(pub_key: Union[bytes, IPublicKey], **kwargs: Any) str
Encode a public key to Neo legacy address.
- Parameters:
pub_key (bytes or IPublicKey) – Public key bytes or object
ver (bytes) – Version
- Returns:
Address string
- Return type:
str
- Raises:
ValueError – If the public key is not valid
TypeError – If the public key is not nist256p1
- NeoLegacyAddr
alias of
NeoLegacyAddrEncoder