Trait AuthorizationInterface
pub trait AuthorizationInterface {
// Required methods
pub fn get_authorization_selector(self) -> AuthorizationSelector;
}
Required methods
pub fn get_authorization_selector(self) -> AuthorizationSelector
Returns the unique identifier of the authorization type.
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