address

package
v0.0.0-...-ca0d009 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressBech32

func AddressBech32(addrBytes []byte, hrp string) string

func AddressBytes

func AddressBytes(subSeed []byte) []byte

func MasterKey

func MasterKey(seed []byte) []byte

func ParseVerboseIndex

func ParseVerboseIndex(input string) (uint32, bool, bool)

func SeedFromMnemonic

func SeedFromMnemonic(mnemonic string, password string) []byte

Types

type Addr

type Addr struct {
	// contains filtered or unexported fields
}

func GetAddress

func GetAddress(masterKey []byte, account, addrIndex uint32, change bool) *Addr

func (Addr) Bech32

func (a Addr) Bech32(hrp string) string

func (Addr) Hex

func (a Addr) Hex() string

func (Addr) IsChange

func (a Addr) IsChange() bool

func (Addr) Sign

func (a Addr) Sign(message []byte) []byte

func (Addr) VerboseIndex

func (a Addr) VerboseIndex() string

func (Addr) Verify

func (a Addr) Verify(message, signature []byte) bool

Jump to

Keyboard shortcuts

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