LedgerSigner
open class LedgerSigner : Disposable, AutoCloseable, LedgerSignerInterface
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.
Functions
| Name | Summary |
|---|---|
| address | open override fun address(): Address The address of the signing key. |
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| path | open override fun path(): String The derivation path of the signing key. |
| publicKey | open override fun publicKey(): Ed25519PublicKey The public key that signs. |
| signPersonalMessage | open suspend override fun signPersonalMessage(message: PersonalMessage): UserSignature Sign a personal message. |
| signTransaction | open suspend override fun signTransaction(transaction: Transaction): UserSignature Sign a transaction without its input objects. Fails with BlindSigningDisabled if blind signing is disabled in the IOTA app's settings. |
| signTransactionWithObjects | open suspend override fun signTransactionWithObjects(transaction: Transaction, objects: List<Object>): UserSignature 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. |