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

Struct FactScope

pub struct FactScope
{ /* private fields */ }

The scope a fact collection belongs to.

A collection under an account scope is only accessible to executions where that account is in scope. A collection under the public scope is shared by all accounts, so any execution of the contract can access it.

Implementations

impl FactScope

pub fn account(account: AztecAddress) -> Self

The scope of a single account.

pub fn public() -> Self

The scope shared by all accounts.

Trait implementations

impl Deserialize for FactScope

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

impl Eq for FactScope

pub fn eq(_self: Self, _other: Self) -> bool

impl Serialize for FactScope

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