Documentation ¶
Overview ¶
Package usbwallet implements support for USB hardware wallets.
Index ¶
- Constants
- Variables
- type Hub
- type LedgerSignature
- type LedgerSignerTester
- func (l *LedgerSignerTester) PreSignature() protocol.Signature
- func (l *LedgerSignerTester) SetPublicKey(sig protocol.Signature) error
- func (l *LedgerSignerTester) Sign(sig protocol.Signature, sigMdHash []byte, txnHash []byte) error
- func (l *LedgerSignerTester) SignTransaction(sig protocol.Signature, txn *protocol.Transaction) error
- type Signer
Constants ¶
View Source
const LedgerScheme = "ledger"
LedgerScheme is the protocol scheme prefixing account and wallet URLs.
Variables ¶
View Source
var (
UseHardwareError = errors.New("use the hardware")
)
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub is a accounts.Backend that can find and handle generic USB hardware wallets.
func NewLedgerHub ¶
NewLedgerHub creates a new hardware wallet manager for Ledger devices.
type LedgerSignature ¶
type LedgerSignature struct { }
type LedgerSignerTester ¶
type LedgerSignerTester struct { signing.Signer PubKey []byte SignThis []byte // contains filtered or unexported fields }
func (*LedgerSignerTester) PreSignature ¶
func (l *LedgerSignerTester) PreSignature() protocol.Signature
func (*LedgerSignerTester) SetPublicKey ¶
func (l *LedgerSignerTester) SetPublicKey(sig protocol.Signature) error
func (*LedgerSignerTester) SignTransaction ¶
func (l *LedgerSignerTester) SignTransaction(sig protocol.Signature, txn *protocol.Transaction) error
Click to show internal directories.
Click to hide internal directories.