Skip to main content

LedgerInterface

interface LedgerInterface

A connection to the IOTA app on a Ledger device.

Every call completes once the device answers, which for address verification includes waiting for the user to confirm on the device. Calls on the same Ledger, including through the LedgerSigners created from it, run one at a time.

Inheritors​

Ledger

Functions​

NameSummary
exitAppabstract suspend fun exitApp()
Close the app running on the device and return to the dashboard.
getPublicKeyabstract suspend fun getPublicKey(path: String): Ed25519PublicKey
Read the public key at a derivation path such as m/44'/4218'/0'/0'/0'.
isAppOpenabstract suspend fun isAppOpen(): Boolean
Check whether the IOTA app is the app running on the device.
openAppabstract suspend fun openApp()
Open the IOTA app, from the dashboard or by closing another app first.
signerabstract suspend fun signer(path: String): LedgerSigner
Create a signer for the key at a derivation path such as m/44'/4218'/0'/0'/0', reading its public key from the device.
verifyAddressabstract suspend fun verifyAddress(path: String): Ed25519PublicKey
Show the address at a derivation path on the device for the user to confirm, and return its public key.
versionabstract suspend fun version(): LedgerAppVersion
Read the version of the IOTA app.