helium_py.crypto.address.Address

class helium_py.crypto.address.Address(version: int, net_type: int, key_type: int, public_key: bytes)[source]

Bases: object

Address class for cryptography.

__init__(version: int, net_type: int, key_type: int, public_key: bytes)[source]

Instantiate an address class.

Methods

__init__(version, net_type, key_type, public_key)

Instantiate an address class.

from_b58(b58)

Return Address instance created from provided b58.

from_bin([value])

Return Address instance created from provided binary.

Attributes

DEFAULT_VERSION

b58

Return b58 representation of address.

bin

Return binary representation of address.

version

net_type

key_type

public_key

property b58: bytes

Return b58 representation of address.

property bin: bytes

Return binary representation of address.

static from_b58(b58: bytes) Address[source]

Return Address instance created from provided b58.

static from_bin(value: Optional[bytes] = None) Address[source]

Return Address instance created from provided binary.