address

package
v1.0.1-lp-billion-1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package address provides primitives for generating and validating addresses (with and without checksum).

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL