pub struct FinanceProofEnvelope {
pub proof_id: ProofId,
pub profile_id: [u8; 32],
pub proof_type: FinanceProofType,
pub subject_nullifier: [u8; 32],
pub proof_data: Vec<u8>,
pub public_inputs_commitment: [u8; 32],
pub credential_refs: Vec<[u8; 32]>,
pub source_issuer_class: FinanceIssuerClass,
pub policy_id: PolicyId,
pub valid_from: Timestamp,
pub expiry: Timestamp,
pub created_at: Timestamp,
}Expand description
Finance proof envelope (SRC-806 compatible)
Fields§
§proof_id: ProofIdUnique proof ID
profile_id: [u8; 32]Proof profile ID
proof_type: FinanceProofTypeProof type
subject_nullifier: [u8; 32]Subject nullifier (prevents linkability)
proof_data: Vec<u8>Proof data (ZK proof bytes or threshold signature)
public_inputs_commitment: [u8; 32]Public inputs commitment
credential_refs: Vec<[u8; 32]>Credential references (commitments to source credentials)
source_issuer_class: FinanceIssuerClassIssuer class of source credential
policy_id: PolicyIdPolicy ID
valid_from: TimestampValid from timestamp
expiry: TimestampExpiry timestamp
created_at: TimestampCreated at timestamp
Implementations§
Trait Implementations§
Source§impl Clone for FinanceProofEnvelope
impl Clone for FinanceProofEnvelope
Source§fn clone(&self) -> FinanceProofEnvelope
fn clone(&self) -> FinanceProofEnvelope
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 FinanceProofEnvelope
impl Debug for FinanceProofEnvelope
Source§impl<'de> Deserialize<'de> for FinanceProofEnvelope
impl<'de> Deserialize<'de> for FinanceProofEnvelope
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 FinanceProofEnvelope
impl PartialEq for FinanceProofEnvelope
Source§fn eq(&self, other: &FinanceProofEnvelope) -> bool
fn eq(&self, other: &FinanceProofEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FinanceProofEnvelope
impl Serialize for FinanceProofEnvelope
impl Eq for FinanceProofEnvelope
impl StructuralPartialEq for FinanceProofEnvelope
Auto Trait Implementations§
impl Freeze for FinanceProofEnvelope
impl RefUnwindSafe for FinanceProofEnvelope
impl Send for FinanceProofEnvelope
impl Sync for FinanceProofEnvelope
impl Unpin for FinanceProofEnvelope
impl UnsafeUnpin for FinanceProofEnvelope
impl UnwindSafe for FinanceProofEnvelope
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