smart_account_auth/
data.rs

1use saa_schema::saa_type;
2
3
4/// CredentialData is wrapper for dealing with multiple credentials at the same time.
5/// Implements both `Verifiable` and `CredentialWrapper` traits.
6#[saa_type]
7pub struct CredentialData {
8    /// The list of credentials to be verified
9    pub credentials            :  Vec<crate::Credential>,
10    /// A flag indicating that the environment can derive an additional credential
11    /// that isn't included in the list of credentials directly.
12    /// Most typically it's the transaction signer that has been verified beforehand
13    /// but can be any other authorized dicated by the environment / smart contract logic
14    pub use_native             :  Option<bool>,
15    /// An optional index indicating which credential will be used as the primary. Default to the first one
16    pub primary_index          :  Option<u8>,
17}