Module darkfi::runtime::import::db

source ยท
Expand description

Host functions for interacting with db backend

Structsยง

  • Internal wasm runtime API for sled trees

Functionsยง

  • db_contains_key ๐Ÿ”’
    Check if a database contains a given key.
  • db_del ๐Ÿ”’
    Remove a key from the database.
  • db_get ๐Ÿ”’
    Reads a value by key from the key-value store.
  • db_init ๐Ÿ”’
    Create a new database instance for the calling contract.
  • db_lookup ๐Ÿ”’
    Lookup a database handle from its name. If it exists, push it to the Vector of db_handles.
  • db_set ๐Ÿ”’
    Set a value within the transaction.
  • zkas_db_set ๐Ÿ”’
    Given a zkas circuit, create a VerifyingKey and insert them both into the db.