aztec-nr - noir_aztec::authwit::auth

Function set_authorized

pub unconstrained fn set_authorized(
    context: PublicContext,
    message_hash: Field,
    authorize: bool,
)

Helper function to set the authorization status of a message hash

Wraps a public call to the authentication registry to set the authorization status of a message_hash

@param message_hash The hash of the message to authorize @param authorize True if the message should be authorized, false if it should be revoked