aztec-nr - noir_aztec::messages::discovery

Type alias CustomSyncHandler

pub type CustomSyncHandler = unconstrained fn(AztecAddress, ComputeNoteHash, ComputeNoteNullifier, Option<CustomMessageHandler>, Option<OffchainInboxSync>, AztecAddress);

Custom state synchronization handler.

When set via crate::macros::AztecConfig::custom_sync_state, the generated sync_state function will call this handler instead of do_sync_state. It receives all of the same parameters, so it can run custom logic (e.g. fetching and decrypting custom logs) before, after, or instead of calling do_sync_state.