Skip to content

Commit

Permalink
swap ordering of a and c in TupleProof to match normal Schnorr usage
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Oct 10, 2024
1 parent 9658791 commit 64dd754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ pub struct TupleProof {
pub R: Point,
/// rB = r*B = b*R
pub rB: Point,
/// z = r + a*c where c = H(G,A,B,K,R) as per Fiat-Shamir
/// z = r + c*a where c = H(G,A,B,K,R) as per Fiat-Shamir
pub z: Scalar,
}

Expand All @@ -305,7 +305,7 @@ impl TupleProof {
Self {
R,
rB: r * B,
z: r + a * c,
z: r + c * a,
}
}

Expand Down

0 comments on commit 64dd754

Please sign in to comment.