vectis-wallet 1.0.0-rc2

Vectis library for common messages, states and functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::types::{authenticator::Authenticator, wallet::Nonce};
use cosmwasm_schema::cw_serde;
use cosmwasm_std::Binary;

/// A unit capturing how a message can be authenticated
/// i.e. Controller, Guardian, other roles
/// Given the `data`, then authenticator associated with the authenticator type
/// will be able to authenticate if the message is signed by this `Entity`
#[cw_serde]
pub struct Entity {
    pub auth: Authenticator,
    /// For CosmosEOA: this is the base64 encoding of the bytes of the addr
    /// i.e. `toBase(toUtf8(addr))`
    pub data: Binary,
    pub nonce: Nonce,
}