software

package
v4.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keystore

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

Keystore implements a keystore in software.

func NewKeystore

func NewKeystore(
	cosignerIndex int,
	master *hdkeychain.ExtendedKey,
) *Keystore

NewKeystore creates a new keystore with the given configuration, index and key.

func NewKeystoreFromPIN

func NewKeystoreFromPIN(cosignerIndex int, pin string) *Keystore

NewKeystoreFromPIN creates a new unique keystore derived from the PIN.

func (*Keystore) Configuration

func (keystore *Keystore) Configuration() *signing.Configuration

Configuration implements keystore.Keystore.

func (*Keystore) CosignerIndex

func (keystore *Keystore) CosignerIndex() int

CosignerIndex implements keystore.Keystore.

func (*Keystore) ExtendedPublicKey

func (keystore *Keystore) ExtendedPublicKey(
	absoluteKeypath signing.AbsoluteKeypath,
) (*hdkeychain.ExtendedKey, error)

ExtendedPublicKey implements keystore.Keystore.

func (*Keystore) HasSecureOutput

func (keystore *Keystore) HasSecureOutput(*signing.Configuration, coin.Coin) (bool, error)

HasSecureOutput implements keystore.Keystore.

func (*Keystore) Identifier

func (keystore *Keystore) Identifier() (string, error)

Identifier implements keystore.Keystore.

func (*Keystore) OutputAddress

func (keystore *Keystore) OutputAddress(*signing.Configuration, coin.Coin) error

OutputAddress implements keystore.Keystore.

func (*Keystore) SignTransaction

func (keystore *Keystore) SignTransaction(
	proposedTransaction interface{},
) error

SignTransaction implements keystore.Keystore.

Jump to

Keyboard shortcuts

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