Documentation
¶
Index ¶
- Variables
- func New() (keychain.Ledger, error)
- type Keychain
- func (l *Keychain) Addresses() []ids.ShortID
- func (l *Keychain) Close() error
- func (l *Keychain) Get(address ids.ShortID) (keychain.Signer, bool)
- func (l *Keychain) Ledger() *Ledger
- func (l *Keychain) Match(owners interface{}, minSigs uint32) ([]ids.ShortID, []uint32, bool)
- func (l *Keychain) Spend(owners interface{}, minSigs uint32) ([]ids.ShortID, []keychain.Signer, bool)
- type Ledger
- func (l *Ledger) Address(hrp string, addressIndex uint32) (ids.ShortID, error)
- func (l *Ledger) Addresses(addressIndices []uint32) ([]ids.ShortID, error)
- func (l *Ledger) Disconnect() error
- func (l *Ledger) Sign(txBytes []byte, addressIndices []uint32) ([][]byte, error)
- func (l *Ledger) SignHash(hash []byte, addressIndices []uint32) ([][]byte, error)
- func (l *Ledger) Version() (*version.Semantic, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLedgerDisabled = errors.New("ledger support is disabled")
Functions ¶
Types ¶
type Keychain ¶ added in v1.1.11
type Keychain struct{}
func NewKeychain ¶ added in v1.1.11
Click to show internal directories.
Click to hide internal directories.