pub type Controller = Entity;Expand description
The main controller of the account
Aliased Type§
pub struct Controller {
pub auth: Authenticator,
pub data: Binary,
pub nonce: u64,
}Fields§
§auth: Authenticator§data: BinaryFor CosmosEOA: this is the base64 encoding of the bytes of the addr
i.e. toBase(toUtf8(addr))
nonce: u64Implementations§
Source§impl Controller
impl Controller
Sourcepub fn increment_nonce(&mut self)
pub fn increment_nonce(&mut self)
Increase nonce by 1
Sourcepub fn ensure_nonces_are_equal(&self, nonce: &Nonce) -> Result<(), RelayTxError>
pub fn ensure_nonces_are_equal(&self, nonce: &Nonce) -> Result<(), RelayTxError>
Ensure nonces are equal
Sourcepub fn auth_type(&self) -> &AuthenticatorType
pub fn auth_type(&self) -> &AuthenticatorType
Returns the AuthenicatorType
Sourcepub fn authenticator(&self) -> &Authenticator
pub fn authenticator(&self) -> &Authenticator
Returns the Authenicator
Sourcepub fn to_type_data_slice(&self) -> Vec<u8> ⓘ
pub fn to_type_data_slice(&self) -> Vec<u8> ⓘ
Serialise into a unique slice to be stored as previous_controller