pub struct PropertyProofEnvelope {
pub proof_id: ProofId,
pub profile: PropertyProofProfile,
pub profile_id: String,
pub policy_ids: Vec<PolicyId>,
pub public_inputs: Vec<u8>,
pub proof_data: Vec<u8>,
pub proof_type: PropertyProofType,
pub subject_nullifier: [u8; 32],
pub generated_at: Timestamp,
pub expires_at: Timestamp,
}Expand description
SRC-866 Property Proof Envelope
Fields§
§proof_id: ProofIdProof identifier
profile: PropertyProofProfileProof profile being proven
profile_id: StringProfile version string (e.g., “property.ownership.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: PropertyProofTypeProof type
subject_nullifier: [u8; 32]Subject nullifier (for revocation checking)
generated_at: TimestampWhen proof was generated
expires_at: TimestampWhen proof expires
Implementations§
Source§impl PropertyProofEnvelope
impl PropertyProofEnvelope
Sourcepub fn generate_id(
profile: PropertyProofProfile,
subject_nullifier: &[u8; 32],
policy_ids: &[PolicyId],
nonce: &[u8; 32],
) -> ProofId
pub fn generate_id( profile: PropertyProofProfile, subject_nullifier: &[u8; 32], policy_ids: &[PolicyId], nonce: &[u8; 32], ) -> ProofId
Generate proof ID
Trait Implementations§
Source§impl Clone for PropertyProofEnvelope
impl Clone for PropertyProofEnvelope
Source§fn clone(&self) -> PropertyProofEnvelope
fn clone(&self) -> PropertyProofEnvelope
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 PropertyProofEnvelope
impl Debug for PropertyProofEnvelope
Source§impl<'de> Deserialize<'de> for PropertyProofEnvelope
impl<'de> Deserialize<'de> for PropertyProofEnvelope
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 PropertyProofEnvelope
impl PartialEq for PropertyProofEnvelope
Source§fn eq(&self, other: &PropertyProofEnvelope) -> bool
fn eq(&self, other: &PropertyProofEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PropertyProofEnvelope
impl Serialize for PropertyProofEnvelope
impl Eq for PropertyProofEnvelope
impl StructuralPartialEq for PropertyProofEnvelope
Auto Trait Implementations§
impl Freeze for PropertyProofEnvelope
impl RefUnwindSafe for PropertyProofEnvelope
impl Send for PropertyProofEnvelope
impl Sync for PropertyProofEnvelope
impl Unpin for PropertyProofEnvelope
impl UnsafeUnpin for PropertyProofEnvelope
impl UnwindSafe for PropertyProofEnvelope
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