aztec-nr - noir_aztec::authwit::authorization_interface

Trait AuthorizationInterface

pub trait AuthorizationInterface {
    // Required methods
    pub fn get_authorization_selector(self) -> AuthorizationSelector;
}

Allows getting the selector for an authorization struct (see src/macros/authorization.nr) used to uniquely identify them and avoiding collisions. This is important because authorizations are emitted as offchain effects and their unique selector allows users/wallets to decode them correctly

Required methods

pub fn get_authorization_selector(self) -> AuthorizationSelector

Returns the unique identifier of the authorization type.

Implementors

impl AuthorizationInterface for CallAuthorization