LedgerSigner
type LedgerSigner
Signs with the key at one derivation path on a Ledger device.
Before each signature it reads the public key again and fails with `KeyMismatch` if it differs, which happens when another device is connected or the device was unlocked with a different seed or passphrase.
Use `TransactionSigner.from_ledger` to sign with it through the transaction builder, which passes it the transaction's objects so the device shows what the transaction does.
type LedgerSigner struct {
// contains filtered or unexported fields
}
func LiftFromExternalLedgerSigner
func LiftFromExternalLedgerSigner(handle uint64) *LedgerSigner
func (*LedgerSigner) Address
func (_self *LedgerSigner) Address() *Address
The address of the signing key.
func (*LedgerSigner) Destroy
func (object *LedgerSigner) Destroy()
func (*LedgerSigner) Path
func (_self *LedgerSigner) Path() string
The derivation path of the signing key.
func (*LedgerSigner) PublicKey
func (_self *LedgerSigner) PublicKey() *Ed25519PublicKey
The public key that signs.
func (*LedgerSigner) SignPersonalMessage
func (_self *LedgerSigner) SignPersonalMessage(message *PersonalMessage) (*UserSignature, error)
Sign a personal message.
func (*LedgerSigner) SignTransaction
func (_self *LedgerSigner) SignTransaction(transaction *Transaction) (*UserSignature, error)
Sign a transaction without its input objects. Fails with `BlindSigningDisabled` if blind signing is disabled in the IOTA app's settings.
func (*LedgerSigner) SignTransactionWithObjects
func (_self *LedgerSigner) SignTransactionWithObjects(transaction *Transaction, objects []*Object) (*UserSignature, error)
Sign a transaction, passing its input objects so the device can clear-sign it. Falls back to blind signing with an IOTA app older than 1.0.