1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use super::CredentialSchema;
use crate::SigningPublicKey;
use ockam_core::compat::vec::Vec;
use serde::{Deserialize, Serialize};
use serde_big_array::big_array;
big_array! { BigArray; }
/// A list of the accepted schemas, public keys, and required to be revealed
/// attributes from a verifier
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct PresentationManifest {
/// The credential schema associated with the public key
pub credential_schema: CredentialSchema,
#[serde(with = "BigArray")]
/// The public key of the issuer
pub public_key: SigningPublicKey,
/// The attributes required to be revealed
pub revealed: Vec<usize>,
}