Static BITVM_CACHE

Source
pub static BITVM_CACHE: OnceCell<BitvmCacheWithMetadata>
Expand description

Global BitVM cache wrapped in a OnceLock.

ยงUsage

Use with BITVM_CACHE.get_or_try_init(load_or_generate_bitvm_cache) to get the cache or optionally load it. The cache will be initialized from a file, and if that fails, the fresh data will be generated.