aztec-nr - noir_aztec::public_checks

Function privately_check_block_number

pub fn privately_check_block_number(
    operation: u8,
    value: u32,
    context: &mut PrivateContext,
)

Asserts that the current block number in the enqueued public call enqueued by check_block_number satisfies the operation with respect to the value. Preserves privacy by performing the check via the public checks contract. This conceals an address of the calling contract by setting context.msg_sender` to the public checks contract address.