Skip to content

Commit fd97396

Browse files
committed
Remove extra data check in signSchnorr and bump version (#3)
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.
1 parent e40fadc commit fd97396

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,6 @@ export function signSchnorr(h, d, e) {
322322
if (!isHash(h)) {
323323
throw new Error('Expected Scalar');
324324
}
325-
if (!isExtraData(e)) {
326-
throw new Error('Expected Extra Data (32 bytes)');
327-
}
328325
return necc.schnorr.signSync(h, d, e);
329326
}
330327

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@bitcoinerlab/secp256k1",
33
"homepage": "https://bitcoinerlab.com/secp256k1",
4-
"version": "1.0.3",
4+
"version": "1.0.4",
55
"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.",
66
"main": "dist/index.js",
77
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)