Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
data_store.hpp
Go to the documentation of this file.
1// To be provided by the environment.
2// For a WASM build, this is provided by the JavaScript environment.
3// For a native build, this is provided in this module.
5#include <cstddef>
6#include <cstdint>
7
8// Takes a copy of buf and saves it associated with key.
9WASM_IMPORT("set_data") void set_data(char const* key, uint8_t const* buf, size_t length);
10
11// Copies bytes of data associated with key into out_buf.
12WASM_IMPORT("get_data") void get_data(char const* key, uint8_t* out_buf);
void get_data(char const *key, uint8_t *out_buf)
void set_data(char const *key, uint8_t const *addr, size_t length)
uint8_t const size_t length
Definition data_store.hpp:9
uint8_t const * buf
Definition data_store.hpp:9
uint8_t * out_buf
#define WASM_IMPORT(name)