pub struct Commitment {
pub sd: Vec<String>,
pub disclosures: Vec<Disclosure>,
}Expand description
The output of committing a set of disclosable claims: the sorted digest list that goes into the signed payload, and the disclosures the holder keeps to reveal later.
Fields§
§sd: Vec<String>Sorted sha256:<hex> digests. Goes into the signed statement as _sd.
Sorted so the on-wire order does not leak the claims’ insertion order.
disclosures: Vec<Disclosure>One disclosure per committed claim, in input order. The holder stores these and presents the subset it chooses to reveal.
Trait Implementations§
Source§impl Clone for Commitment
impl Clone for Commitment
Source§fn clone(&self) -> Commitment
fn clone(&self) -> Commitment
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 moreAuto Trait Implementations§
impl Freeze for Commitment
impl RefUnwindSafe for Commitment
impl Send for Commitment
impl Sync for Commitment
impl Unpin for Commitment
impl UnsafeUnpin for Commitment
impl UnwindSafe for Commitment
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