pub struct AgreementProofEnvelope {
pub proof_id: ProofId,
pub profile: AgreementProofProfile,
pub profile_id: String,
pub policy_ids: Vec<PolicyId>,
pub public_inputs: Vec<u8>,
pub proof_data: Vec<u8>,
pub proof_type: AgreementProofType,
pub subject_nullifier: [u8; 32],
pub generated_at: Timestamp,
pub expires_at: Timestamp,
}Expand description
SRC-846 Agreement Proof Envelope
Fields§
§proof_id: ProofIdProof identifier
profile: AgreementProofProfileProof profile being proven
profile_id: StringProfile version string (e.g., “agreement.signed_by_roles.v1”)
policy_ids: Vec<PolicyId>Policy IDs that were checked
public_inputs: Vec<u8>Public inputs to the proof
proof_data: Vec<u8>The proof data
proof_type: AgreementProofTypeProof type
subject_nullifier: [u8; 32]Subject nullifier (for revocation checking)
generated_at: TimestampWhen proof was generated
expires_at: TimestampWhen proof expires
Implementations§
Source§impl AgreementProofEnvelope
impl AgreementProofEnvelope
Sourcepub fn generate_id(
profile: AgreementProofProfile,
subject_nullifier: &[u8; 32],
policy_ids: &[PolicyId],
nonce: &[u8; 32],
) -> ProofId
pub fn generate_id( profile: AgreementProofProfile, subject_nullifier: &[u8; 32], policy_ids: &[PolicyId], nonce: &[u8; 32], ) -> ProofId
Generate proof ID
Trait Implementations§
Source§impl Clone for AgreementProofEnvelope
impl Clone for AgreementProofEnvelope
Source§fn clone(&self) -> AgreementProofEnvelope
fn clone(&self) -> AgreementProofEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgreementProofEnvelope
impl Debug for AgreementProofEnvelope
Source§impl<'de> Deserialize<'de> for AgreementProofEnvelope
impl<'de> Deserialize<'de> for AgreementProofEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgreementProofEnvelope
impl PartialEq for AgreementProofEnvelope
Source§fn eq(&self, other: &AgreementProofEnvelope) -> bool
fn eq(&self, other: &AgreementProofEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgreementProofEnvelope
impl Serialize for AgreementProofEnvelope
impl Eq for AgreementProofEnvelope
impl StructuralPartialEq for AgreementProofEnvelope
Auto Trait Implementations§
impl Freeze for AgreementProofEnvelope
impl RefUnwindSafe for AgreementProofEnvelope
impl Send for AgreementProofEnvelope
impl Sync for AgreementProofEnvelope
impl Unpin for AgreementProofEnvelope
impl UnsafeUnpin for AgreementProofEnvelope
impl UnwindSafe for AgreementProofEnvelope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more