Module darkfi_sdk::db
source · Expand description
Database functions
Constants
Functions
- Everyone can call this. Checks if a key is contained in the key-value store.
- db_contains_key_ 🔒 ⚠
- Only update() can call this. Removes a key from the db.
- db_del_ 🔒 ⚠
- Everyone can call this. Will read a key from the key-value store.
- db_get_ 🔒 ⚠
- Only deploy() can call this. Creates a new database instance for this contract.
- db_init_ 🔒 ⚠
- Everyone can call this. Assumes that the database already went through
db_init()
. - db_lookup_ 🔒 ⚠
- Only update() can call this. Set a value within the transaction.
- db_set_ 🔒 ⚠
- Only deploy() can call this.
- zkas_db_set_ 🔒 ⚠