Documentation ¶
Overview ¶
Package address provides primitives for generating and validating addresses (with and without checksum).
Index ¶
- func Checksum(address Hash) (Trytes, error)
- func GenerateAddress(seed Trytes, index uint64, secLvl SecurityLevel, addChecksum ...bool) (Hash, error)
- func GenerateAddresses(seed Trytes, start uint64, count uint64, secLvl SecurityLevel, ...) (Hashes, error)
- func ValidAddress(address Hash) error
- func ValidChecksum(address Hash, checksum Trytes) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checksum ¶
func Checksum(address Hash) (Trytes, error)
Checksum returns the checksum of the given address.
func GenerateAddress ¶
func GenerateAddress(seed Trytes, index uint64, secLvl SecurityLevel, addChecksum ...bool) (Hash, error)
GenerateAddress generates an address deterministically, according to the given seed, index and security level.
func GenerateAddresses ¶
func GenerateAddresses(seed Trytes, start uint64, count uint64, secLvl SecurityLevel, addChecksum ...bool) (Hashes, error)
GenerateAddresses generates N new addresses from the given seed, indices and security level.
func ValidAddress ¶
func ValidAddress(address Hash) error
ValidAddress checks whether the given address is valid.
func ValidChecksum ¶
func ValidChecksum(address Hash, checksum Trytes) error
ValidChecksum checks whether the given checksum corresponds to the given address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.