ockam_entity 0.35.0

Ockam is a library for building devices that communicate securely, privately and trustfully with cloud services and other devices.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::CredentialAttribute;
use crate::{ExtPokSignatureProof, PresentationIdBytes};
use ockam_core::compat::vec::Vec;
use serde::{Deserialize, Serialize};

/// Indicates how to present a credential
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct CredentialPresentation {
    /// The presentation id or challenge hash
    pub presentation_id: PresentationIdBytes,
    /// The revealed attribute values in the same canonical ordering as the presentation manifest
    pub revealed_attributes: Vec<CredentialAttribute>,
    // The zero-knowledge proof associated with this credential
    pub proof: ExtPokSignatureProof,
}