aztec-nr - noir_aztec::facts
Module facts
Structs
- A single immutable fact in a collection.
- A fact collection as returned by the store.
- The block a retractable fact originates from.
Functions
- Deletes a fact collection, removing all its facts from PXE storage.
- Fetches a fact collection.
- Returns every fact collection of
fact_collection_type_id. - Records a non-retractable fact into a collection: it survives reorgs and will persist until the fact collection itself is deleted. Re-recording an identical fact is a no-op.
- Records a retractable fact into a collection: PXE prunes it if
origin_blockis reorg'd away. Re-recording an identical fact is a no-op.
Storage of immutable facts grouped into collections.
A fact is a contract-defined, typed, immutable datum. Facts are grouped into collections identified by a
(collection type, collection id)tuple.They are stored in PXE's FactStore, which automatically deals with reorgs by removing any facts associated with blocks that have been pruned.