pub async fn lookup_validity<W: Wallet>(
wallet: &W,
on_behalf_of: &AztecAddress,
intent: &MessageHashOrIntent,
witness: &AuthWitness,
) -> Result<AuthWitValidity, Error>Expand description
Check whether an authorization witness is valid in both private and public contexts.
-
Private: Simulates a
lookup_validity(consumer, inner_hash)utility call on theon_behalf_ofaccount contract, passing the witness. If simulation succeeds and returnstrue, the authwit is valid privately. -
Public: Simulates a
utility_is_consumable(address, message_hash)utility call on the AuthRegistry protocol contract. If it returnstrue, the authwit is valid publicly.
Mirrors TS lookupValidity(wallet, onBehalfOf, intent, witness).