Pebble App Framework: Phone API
    Preparing search index...

    Function saveLedger

    • Writes the stamps spent on one key beside the others, and shrugs if the phone will not take it. A key with nothing spent in the last day is let go, so old keys do not pile up.

      Parameters

      • storage: LedgerStorage

        Where the ledger lives, normally localStorage.

      • provider: string

        The provider's id.

      • ledger: ProviderLedger

        The key fingerprint and its stamps.

      • nowMs: number

        Now, in epoch milliseconds.

      Returns void