Skip to content

Commit

Permalink
update schnorr
Browse files Browse the repository at this point in the history
hh committed Jan 30, 2024
1 parent 63f528f commit 06303b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schnorr.ts
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ export class Schnorr extends SmartContractLib {
msg: ByteString,
R: Point
): boolean {
const r: ByteString = slice(sig, 0n, 64n) // First 32 bytes
const r: ByteString = slice(sig, 0n, 32n) // First 32 bytes
const s = byteString2Int(
reverseByteString(slice(sig, 32n, 64n), 32n) + toByteString('00')
)

0 comments on commit 06303b4

Please sign in to comment.