zkDatabase
zkDatabase copied to clipboard
Store data generated from circuit compilation in remote storage
o1js offers the capability to cache data generated from zkApp and zkProgram. Storing this data externally is a beneficial strategy. It will considerably enhance the circuit compilation time, thereby improving the user experience.
const cache = Cache.FileSystem(`/name`)
SmartContract.compile({cache})
Can this support in memory caching?
Can this support in memory caching?
Yeap, we can write directly to the directory provided by oj1s.
Cache.FileSystem(`/name`).write(UInt8Array)
Can this support in memory caching?
Yeap, we can write directly to the directory provided by oj1s.
Cache.FileSystem(`/name`).write(UInt8Array)
I meant memory not storage 🥲