Const
Retrieves the xpub of a certain originPath of a Ledger device
Registers a policy based on a provided descriptor.
This function will:
ledgerState
inside the ledgerManager
.It's important to understand the nature of the Ledger Policy being registered:
The Name we want to assign to this specific policy
Verifies if the Ledger device is connected, if the required Bitcoin App is opened, and if the version of the app meets the minimum requirements.
Connection transport with the Ledger device. One of these: https://github.com/LedgerHQ/ledger-live#libs---libraries
The name of the Bitcoin App. "Bitcoin" for mainnet or "Bitcoin Test" for testnet.
The minimum acceptable version of the Bitcoin App in semver format (major.minor.patch).
Promise
Will throw an error if the Ledger device is not connected, the required Bitcoin App is not opened, or if the version is below the required number.
Retrieves the masterFingerPrint of a Ledger device