pub struct SsaCommitment<S: PixSpec, P = <S as PixSpec>::Pseudonym> {
pub ssa_id: SsaId<P>,
pub ssa_commitment: PixGroup<S>,
pub commitment_proof: SsaCommitmentProof<S>,
pub verifiers: HashMap<CoefficientIndex, Vec<(PolynomialIndex, PixGroupRepr<S>)>>,
}Expand description
Contains commitment to a specific SSA and corresponding verifier.
Fields§
§ssa_id: SsaId<P>ID of the SSA that is being committed to.
ssa_commitment: PixGroup<S>Commitment to the SSA.
commitment_proof: SsaCommitmentProof<S>Proof that the sender knows the discrete logarithm of Self::ssa_commitment.
Without it the recipient cannot tell a genuine commitment from one crafted so that the
combined deposit key is known to the sender alone — see SsaCommitmentProof.
verifiers: HashMap<CoefficientIndex, Vec<(PolynomialIndex, PixGroupRepr<S>)>>Commitments to the polynomials’ constant terms, keyed by coefficient index.
Always exactly one entry, at CONSTANT_TERM_COEFFICIENT.
Implementations§
Source§impl<S: PixSpec> SsaCommitment<S, S::Pseudonym>
impl<S: PixSpec> SsaCommitment<S, S::Pseudonym>
Sourcepub fn reconstruct_part_commitments(
self,
) -> Result<Vec<SsaPartCommitment<S>>, S::Pseudonym>
pub fn reconstruct_part_commitments( self, ) -> Result<Vec<SsaPartCommitment<S>>, S::Pseudonym>
Reconstructs the per-polynomial commitments from the transposed representation, ordered by polynomial index.
Only the crate::CONSTANT_TERM_COEFFICIENT row is read; any other coefficient index is
ignored, matching what the Exit does with one on the wire.
Sourcepub fn process_into_reconstructor<R: ExitAcknowledgementShareProcessor<S>>(
self,
reconstructor: &R,
) -> Result<(), R::Error>
pub fn process_into_reconstructor<R: ExitAcknowledgementShareProcessor<S>>( self, reconstructor: &R, ) -> Result<(), R::Error>
Shorthand to pass all the coefficient commitments into the reconstructor.
The proof accompanies the constant-term batch, mirroring how the wire messages carry it.
In practice that is the only batch there is — see SsaPartCommitment — but the loop is
kept over the whole map because the type still admits higher coefficient indices.
Trait Implementations§
Source§impl<S: Clone + PixSpec, P: Clone> Clone for SsaCommitment<S, P>
impl<S: Clone + PixSpec, P: Clone> Clone for SsaCommitment<S, P>
Source§fn clone(&self) -> SsaCommitment<S, P>
fn clone(&self) -> SsaCommitment<S, P>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de, S, P> Deserialize<'de> for SsaCommitment<S, P>
impl<'de, S, P> Deserialize<'de> for SsaCommitment<S, P>
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>,
impl<S: Eq + PixSpec, P: Eq> Eq for SsaCommitment<S, P>
Source§impl<S: PixSpec, P> IntoIterator for SsaCommitment<S, P>
impl<S: PixSpec, P> IntoIterator for SsaCommitment<S, P>
Source§type IntoIter = IntoIter<u16, Vec<(u16, <<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint as GroupEncoding>::Repr)>>
type IntoIter = IntoIter<u16, Vec<(u16, <<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint as GroupEncoding>::Repr)>>
Source§impl<S, P> Serialize for SsaCommitment<S, P>
impl<S, P> Serialize for SsaCommitment<S, P>
impl<S: PartialEq + PixSpec, P: PartialEq> StructuralPartialEq for SsaCommitment<S, P>
Auto Trait Implementations§
impl<S, P> Freeze for SsaCommitment<S, P>
impl<S, P> RefUnwindSafe for SsaCommitment<S, P>where
<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint: RefUnwindSafe,
P: RefUnwindSafe,
<<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint as GroupEncoding>::Repr: RefUnwindSafe,
<<<S as PixSpec>::Curve as Curve>::FieldBytesSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
impl<S, P> Send for SsaCommitment<S, P>where
P: Send,
impl<S, P> Sync for SsaCommitment<S, P>where
P: Sync,
impl<S, P> Unpin for SsaCommitment<S, P>
impl<S, P> UnsafeUnpin for SsaCommitment<S, P>where
<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint: UnsafeUnpin,
P: UnsafeUnpin,
<<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint as GroupEncoding>::Repr: UnsafeUnpin,
<<<S as PixSpec>::Curve as Curve>::FieldBytesSize as ArraySize>::ArrayType<u8>: UnsafeUnpin,
impl<S, P> UnwindSafe for SsaCommitment<S, P>where
<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint: UnwindSafe,
P: UnwindSafe,
<<<S as PixSpec>::Curve as CurveArithmetic>::ProjectivePoint as GroupEncoding>::Repr: UnwindSafe,
<<<S as PixSpec>::Curve as Curve>::FieldBytesSize as ArraySize>::ArrayType<u8>: UnwindSafe,
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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more