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 ¶
type LedgerAdapter struct {
// contains filtered or unexported fields
}
LedgerAdapter wraps ledger.LedgerLux to implement keychain.Ledger interface
func (*LedgerAdapter) Disconnect ¶
func (l *LedgerAdapter) Disconnect() error
Disconnect closes the ledger connection
func (*LedgerAdapter) GetAddresses ¶
func (l *LedgerAdapter) GetAddresses(addressIndices []uint32) ([]ids.ShortID, error)
GetAddresses returns addresses at the given indices
func (*LedgerAdapter) Sign ¶
func (l *LedgerAdapter) Sign(data []byte, addressIndex uint32) ([]byte, error)
Sign signs data with the given address index
func (*LedgerAdapter) SignHash ¶
func (l *LedgerAdapter) SignHash(hash []byte, addressIndex uint32) ([]byte, error)
SignHash signs a hash with the given address index
func (*LedgerAdapter) SignTransaction ¶
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.