Documentation
¶
Index ¶
- func NewLedger() (keychain.Ledger, error)
- type LedgerAdapter
- func (l *LedgerAdapter) Address(displayHRP string, addressIndex uint32) (ids.ShortID, error)
- func (l *LedgerAdapter) Disconnect() error
- func (l *LedgerAdapter) GetAddresses(addressIndices []uint32) ([]ids.ShortID, error)
- func (l *LedgerAdapter) Sign(data []byte, addressIndex uint32) ([]byte, error)
- func (l *LedgerAdapter) SignHash(hash []byte, addressIndex uint32) ([]byte, error)
- func (l *LedgerAdapter) SignTransaction(rawUnsignedHash []byte, addressIndices []uint32) ([][]byte, error)
- func (l *LedgerAdapter) Version() (*version.Semantic, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LedgerAdapter ¶ added in v1.11.14
type LedgerAdapter struct {
// contains filtered or unexported fields
}
LedgerAdapter wraps ledger.LedgerLux to implement keychain.Ledger interface
func (*LedgerAdapter) Disconnect ¶ added in v1.11.14
func (l *LedgerAdapter) Disconnect() error
Disconnect closes the ledger connection
func (*LedgerAdapter) GetAddresses ¶ added in v1.11.14
func (l *LedgerAdapter) GetAddresses(addressIndices []uint32) ([]ids.ShortID, error)
GetAddresses returns addresses at the given indices
func (*LedgerAdapter) Sign ¶ added in v1.11.14
func (l *LedgerAdapter) Sign(data []byte, addressIndex uint32) ([]byte, error)
Sign signs data with the given address index
func (*LedgerAdapter) SignHash ¶ added in v1.11.14
func (l *LedgerAdapter) SignHash(hash []byte, addressIndex uint32) ([]byte, error)
SignHash signs a hash with the given address index
func (*LedgerAdapter) SignTransaction ¶ added in v1.11.14
func (l *LedgerAdapter) SignTransaction(rawUnsignedHash []byte, addressIndices []uint32) ([][]byte, error)
SignTransaction signs a transaction with multiple addresses
Click to show internal directories.
Click to hide internal directories.