pub struct FieldCommitment {
pub field: String,
pub commitment: String,
}Expand description
A single field commitment extracted from the proof’s public values.
Fields§
§field: StringField name (e.g., “amount”, “product_id”)
commitment: StringHex-encoded SHA-256 commitment: SHA-256(field:value:external_id:secret_salt)
Trait Implementations§
Source§impl Clone for FieldCommitment
impl Clone for FieldCommitment
Source§fn clone(&self) -> FieldCommitment
fn clone(&self) -> FieldCommitment
Returns a duplicate of the value. Read more
1.0.0 · 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 FieldCommitment
impl Debug for FieldCommitment
Source§impl<'de> Deserialize<'de> for FieldCommitment
impl<'de> Deserialize<'de> for FieldCommitment
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
Auto Trait Implementations§
impl Freeze for FieldCommitment
impl RefUnwindSafe for FieldCommitment
impl Send for FieldCommitment
impl Sync for FieldCommitment
impl Unpin for FieldCommitment
impl UnsafeUnpin for FieldCommitment
impl UnwindSafe for FieldCommitment
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