For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::facts

Struct FactCollection

pub struct FactCollection {
    pub contract_address: AztecAddress,
    pub scope: AztecAddress,
    pub fact_collection_type_id: Field,
    pub fact_collection_id: Field,
    pub facts: EphemeralArray<Fact>,
}

A fact collection as returned by the store.

Fields

contract_address: AztecAddress
fact_collection_type_id: Field

The collection's type. A single contract may have facts in collections of different types (e.g. one for the processing offchain messages, another for partial notes, etc.).

fact_collection_id: Field

The collection's unique identifier among the other collections of this type in this contract and scope.

Trait implementations

impl Deserialize for FactCollection

pub fn deserialize(fields: [Field; 5]) -> Self pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self

impl Serialize for FactCollection

pub fn serialize(self) -> [Field; 5] pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)