software

package
v4.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 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) CanVerifyAddress

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

CanVerifyAddress implements keystore.Keystore.

func (*Keystore) CanVerifyExtendedPublicKey

func (keystore *Keystore) CanVerifyExtendedPublicKey() bool

CanVerifyExtendedPublicKey implements keystore.Keystore.

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(
	coin coin.Coin, absoluteKeypath signing.AbsoluteKeypath,
) (*hdkeychain.ExtendedKey, error)

ExtendedPublicKey implements keystore.Keystore.

func (*Keystore) Identifier

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

Identifier implements keystore.Keystore.

func (*Keystore) SignTransaction

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

SignTransaction implements keystore.Keystore.

func (*Keystore) SupportsAccount

func (keystore *Keystore) SupportsAccount(
	coin coin.Coin, multisig bool, meta interface{}) bool

SupportsAccount implements keystore.Keystore.

func (*Keystore) VerifyAddress

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

VerifyAddress implements keystore.Keystore.

func (*Keystore) VerifyExtendedPublicKey

func (keystore *Keystore) VerifyExtendedPublicKey(coin coin.Coin, keyPath signing.AbsoluteKeypath, configuration *signing.Configuration) error

VerifyExtendedPublicKey implements keystore.Keystore.

Jump to

Keyboard shortcuts

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