Skip to content

Commit

Permalink
Remove extra data check in signSchnorr and bump version (#3)
Browse files Browse the repository at this point in the history
This commit removes the check for 'e' (auxRand equivalent) being valid extra data in the signSchnorr function. This adjustment aligns with the updated handling of undefined 'e' values, as discussed in issue #3. The library version is also incremented to reflect this change.
  • Loading branch information
landabaso committed Jun 28, 2023
1 parent e40fadc commit fd97396
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,6 @@ export function signSchnorr(h, d, e) {
if (!isHash(h)) {
throw new Error('Expected Scalar');
}
if (!isExtraData(e)) {
throw new Error('Expected Extra Data (32 bytes)');
}
return necc.schnorr.signSync(h, d, e);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bitcoinerlab/secp256k1",
"homepage": "https://bitcoinerlab.com/secp256k1",
"version": "1.0.3",
"version": "1.0.4",
"description": "A library for performing elliptic curve operations on the secp256k1 curve. It is designed to integrate into the BitcoinJS & BitcoinerLAB ecosystems and uses the audited noble-secp256k1 library. It is compatible with environments that do not support WASM, such as React Native.",
"main": "dist/index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit fd97396

Please sign in to comment.