1 2 3 4 5 6 7 8 9 10 11 12
use super::CredentialSchema; use serde::{Deserialize, Serialize}; /// A credential offer is how an issuer informs a potential holder that /// a credential is available to them #[derive(Debug, Serialize, Deserialize)] pub struct CredentialOffer { /// The credential offer id is a cryptographic nonce, this must never repeat pub id: [u8; 32], /// The schema for the credential that the issuer is offering to sign pub schema: CredentialSchema, }