Skip to content

Commit

Permalink
Update LibSchnorr.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
max-wickham authored Jan 6, 2025
1 parent 2a106bc commit 3200f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/LibSchnorr.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ library LibSchnorr {
v = pubKey.yParity() + 27;
}

// Set r = Pₓ
// Set r = Pₓ % Q
uint r = pubKey.x % LibSecp256k1.Q();

// Compute s = Q - (e * Pₓ) (mod Q)
Expand Down

0 comments on commit 3200f84

Please sign in to comment.