neo_n3_addr
Module for Neo N3 address encoding/decoding.
- class NeoN3AddrEncoder
Bases:
IAddrEncoderNeo N3 address encoder class. It allows the Neo N3 address encoding.
- static EncodeKey(pub_key: Union[bytes, IPublicKey], **kwargs: Any) str
Encode a public key to Neo N3 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
- NeoN3Addr
alias of
NeoN3AddrEncoder