MCPcopy Create free account
hub / github.com/docknetwork/crypto / sub

Method sub

equality_across_groups/src/ec/commitments.rs:110–115  ·  view source on GitHub ↗
(self, rhs: Self)

Source from the content-addressed store, hash-verified

108 type Output = PointCommitment<G>;
109
110 fn sub(self, rhs: Self) -> Self::Output {
111 PointCommitment {
112 x: (self.x.into_group() - rhs.x).into_affine(),
113 y: (self.y.into_group() - rhs.y).into_affine(),
114 }
115 }
116}
117
118impl<G: SWPoint> Add for &PointCommitmentWithOpening<G> {

Callers 4

verify_decryptionMethod · 0.80
newMethod · 0.80
_verifyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected