software

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

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() bool

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.AbsoluteKeypath, signing.ScriptType, coin.Coin) error

OutputAddress implements keystore.Keystore.

func (*Keystore) SignTransaction

func (keystore *Keystore) SignTransaction(
	proposedTransaction coin.ProposedTransaction,
) error

SignTransaction implements keystore.Keystore.

Jump to

Keyboard shortcuts

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