wallet

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCrypt

func NewCrypt(key []byte) *crypt

Types

type Wallet

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

func Decode

func Decode(walletData []byte, password []byte) (*Wallet, error)

func NewWalletFromSeed

func NewWalletFromSeed(seed []byte) (*Wallet, error)

func (*Wallet) Encode

func (a *Wallet) Encode(password []byte) ([]byte, error)

func (*Wallet) GenPair

func (a *Wallet) GenPair() (crypto.SecretKey, crypto.PublicKey, error)

func (*Wallet) Seed

func (a *Wallet) Seed() []byte

type WalletFormat

type WalletFormat struct {
	Version int32  `json:"version"`
	Seed    []byte `json:"seed"`
	Index   uint32 `json:"index"`
}

Jump to

Keyboard shortcuts

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