[][src]Crate forest_address

Structs

Address

Address is the struct that defines the protocol and data payload conversion from either a public key or value

Enums

Error

Address error

Network

Network defines the preconfigured networks to use with address encoding

Payload

Payload is the data of the Address. Variants are the supported Address protocols.

Protocol

Protocol defines the addressing protocol used to derive data to an address

Constants

BLS_PUB_LEN

BLS public key length used for validation of BLS addresses.

CHECKSUM_HASH_LEN

Length of the checksum hash for string encodings.

PAYLOAD_HASH_LEN

Hash length of payload for Secp and Actor addresses.

SECP_PUB_LEN

Uncompressed secp public key used for validation of Secp addresses.

Functions

checksum

Checksum calculates the 4 byte checksum hash

validate_checksum

Validates the checksum against the ingest data