@heliuslabs/spr - v0.9.0-alpha
    Preparing search index...

    Interface WalletStateStore

    Snapshots contain private UTXO data, encrypt them at rest. save must replace the stored snapshot atomically or leave it unchanged, a partial write breaks the retry contract of syncPersistedWallet. Single writer per stored snapshot, a stale overwrite loses only sync progress the next sync recovers.

    interface WalletStateStore {
        load(): Promise<string | undefined>;
        save(snapshot: string): Promise<void>;
    }
    Index
    • Parameters

      • snapshot: string

      Returns Promise<void>