LedgerState: {
    masterFingerprint?: Buffer;
    policies?: LedgerPolicy[];
    xpubs?: {
        [key: string]: string;
    };
}

Ledger devices operate in a state-less manner. Therefore, policy information needs to be maintained in a separate data structure, ledgerState. For optimization, ledgerState also stores cached xpubs and the masterFingerprint.

Type declaration

  • Optional masterFingerprint?: Buffer
  • Optional policies?: LedgerPolicy[]
  • Optional xpubs?: {
        [key: string]: string;
    }
    • [key: string]: string