keys

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keys

type Keys struct {
	PrivateKey *btcec.PrivateKey
	PublicKey  *btcec.PublicKey
	AddressPKH *btcutil.AddressPubKeyHash
}

Keys represents a simple wrapper for generated keys

func New

func New() (*Keys, error)

New creates new keys object

func (*Keys) MarshalJSON

func (k *Keys) MarshalJSON() ([]byte, error)

MarshalJSON returns marshaled keys This is not the best way to serialize, but this is a prototype :)

func (*Keys) UnmarshalJSON

func (k *Keys) UnmarshalJSON(d []byte) error

UnmarshalJSON does unmarshal keys

Jump to

Keyboard shortcuts

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