You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wasi-keyvalue shim should be written to make use of the idb-keyval library (or simply idb), which is built on top of the browser's IndexedDB storage API. This would be easiest if it could be postponed until JSPI is farther along in its standardization/integration process. This will allow much more storage, and also allow subsequent phases of the persistence design (see below).
Persistence
User data shall not be immediately persisted. It shall only be persisted after all plugin calls have popped off the stack with successful return values.
Possible phase 3 implementation: The client-side data should work similarly to the server-side data. If a transaction was scheduled for execution from the plugin execution context, then any written data is not persisted until after an irreversible block is created that contains the successfully executed transaction. We can revisit this design later, but perhaps any client data writes during the window of uncertainty (before irreversible) happen on both the head branch and on the pending branch. If the pending branch is confirmed irreversible, the writes to the head branch are thrown out, and if the transaction is forked out then the writes to the pending branch are thrown out.
The text was updated successfully, but these errors were encountered:
These details were moved from their original issue #740
Key-value Interface
The API should mirror the idb-keyval API, except for the
update
function, which would require passing functions:Host-provided functionality:
Wasi-keyvalue shim should be written to make use of the idb-keyval library (or simply
idb
), which is built on top of the browser's IndexedDB storage API. This would be easiest if it could be postponed until JSPI is farther along in its standardization/integration process. This will allow much more storage, and also allow subsequent phases of the persistence design (see below).Persistence
User data shall not be immediately persisted. It shall only be persisted after all plugin calls have popped off the stack with successful return values.
The text was updated successfully, but these errors were encountered: