Documentation ¶
Index ¶
- type Keystore
- func (keystore *Keystore) Configuration() *signing.Configuration
- func (keystore *Keystore) CosignerIndex() int
- func (keystore *Keystore) ExtendedPublicKey(absoluteKeypath signing.AbsoluteKeypath) (*hdkeychain.ExtendedKey, error)
- func (keystore *Keystore) HasSecureOutput() bool
- func (keystore *Keystore) Identifier() (string, error)
- func (keystore *Keystore) OutputAddress(signing.AbsoluteKeypath, signing.ScriptType, coin.Coin) error
- func (keystore *Keystore) SignTransaction(proposedTransaction coin.ProposedTransaction) error
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 ¶
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 ¶
CosignerIndex implements keystore.Keystore.
func (*Keystore) ExtendedPublicKey ¶
func (keystore *Keystore) ExtendedPublicKey( absoluteKeypath signing.AbsoluteKeypath, ) (*hdkeychain.ExtendedKey, error)
ExtendedPublicKey implements keystore.Keystore.
func (*Keystore) HasSecureOutput ¶
HasSecureOutput implements keystore.Keystore.
func (*Keystore) Identifier ¶
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.
Click to show internal directories.
Click to hide internal directories.