From 64dd754d6752dd0c0b0c3dcfb76adbaac386ba3b Mon Sep 17 00:00:00 2001 From: Joey Yandle Date: Wed, 9 Oct 2024 22:33:05 -0400 Subject: [PATCH] swap ordering of a and c in TupleProof to match normal Schnorr usage --- src/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.rs b/src/common.rs index 36b2a86..248dc31 100644 --- a/src/common.rs +++ b/src/common.rs @@ -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, } @@ -305,7 +305,7 @@ impl TupleProof { Self { R, rB: r * B, - z: r + a * c, + z: r + c * a, } }