tzwallet

package module
v0.0.0-...-4467452 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 10 Imported by: 0

README

tzwallet

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeysFromSeed

func KeysFromSeed(seed []byte) (address string, pub ed25519.PublicKey, priv ed25519.PrivateKey, err error)

func NewMnemonic

func NewMnemonic() (string, error)

NewMnemonic generates a new HD Wallet mnemonic phrase

func NewSeed

func NewSeed(mnemonic, password string) []byte

func PublicKeyFrom

func PublicKeyFrom(k ed25519.PublicKey) string

func SecretKeyFrom

func SecretKeyFrom(k ed25519.PrivateKey) string

Types

type Wallet

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

func New

func New() (*Wallet, error)

func NewFromMnemonicAndPassword

func NewFromMnemonicAndPassword(mnemonic string, password string) (*Wallet, error)

func NewFromPassword

func NewFromPassword(password string) (*Wallet, error)

func (*Wallet) Address

func (w *Wallet) Address() string

func (*Wallet) String

func (w *Wallet) String() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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