address

package
v0.0.0-...-1bea25e Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidChecksum = errors.Error("invalid checksum")
)

Variables

This section is empty.

Functions

func Base58Decode

func Base58Decode(input []byte) []byte

Base58Decode decodes Base58-encoded data

func Base58Encode

func Base58Encode(input []byte) []byte

Base58Encode encodes a byte array to Base58

func IsValid

func IsValid(addr string) (bool, error)

func MatchesPubKey

func MatchesPubKey(addr string, pubKey string) bool

func ReverseBytes

func ReverseBytes(data []byte)

Types

type Address

type Address struct {
	Keys    *keypair.KeyPair
	Address string
}

func New

func New() *Address

func NewAddressForKeys

func NewAddressForKeys(keys *keypair.KeyPair) (*Address, error)

func NewAddressFromBytes

func NewAddressFromBytes(a []byte) *Address

func NewAddressWithKeys

func NewAddressWithKeys() (*Address, error)

func (*Address) IsValid

func (a *Address) IsValid() (bool, error)

func (*Address) ToBytes

func (a *Address) ToBytes() []byte

Jump to

Keyboard shortcuts

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