Crate kaspa_addresses

Source
Expand description

Kaspa Address implementation.

In it’s string form, the Kaspa Address is represented by a bech32-encoded address string combined with a network type. The bech32 string encoding is comprised of a public key, the public key version and the resulting checksum.

Structs§

Address
Kaspa Address struct that serializes to and from an address format string: kaspa:qz0s...t8cv.
AddressArrayT
WASM (TypeScript) type representing an array of Address objects: Address[].
AddressOrStringArrayT
WASM (TypeScript) type representing an array of Address-like objects: (Address | string)[].
AddressOrUndefinedT
WASM (TypeScript) type representing an Address or an undefined value: Address | undefined.
AddressT
WASM (TypeScript) type representing an Address-like object: Address | string.

Enums§

AddressError
Error type produced by Address operations.
Prefix
Address prefix identifying the network type this address belongs to (such as kaspa, kaspatest, kaspasim, kaspadev).
Version
Kaspa Address version (PubKey, PubKey ECDSA, ScriptHash)

Constants§

PAYLOAD_VECTOR_SIZE
Size of the payload vector of an address.

Type Aliases§

PayloadVec
Used as the underlying type for address payload, optimized for the largest version length (33).