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
| Name | Summary |
|---|---|
| exitApp | abstract suspend fun exitApp() Close the app running on the device and return to the dashboard. |
| getPublicKey | abstract suspend fun getPublicKey(path: String): Ed25519PublicKey Read the public key at a derivation path such as m/44'/4218'/0'/0'/0'. |
| isAppOpen | abstract suspend fun isAppOpen(): Boolean Check whether the IOTA app is the app running on the device. |
| openApp | abstract suspend fun openApp() Open the IOTA app, from the dashboard or by closing another app first. |
| signer | abstract 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. |
| verifyAddress | abstract 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. |
| version | abstract suspend fun version(): LedgerAppVersion Read the version of the IOTA app. |