Skip to content

Commit 29fcad3

Browse files
committed
Merge devdeps: should, bmark into jsbt
1 parent 9502c7f commit 29fcad3

File tree

12 files changed

+105
-453
lines changed

12 files changed

+105
-453
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,4 @@ declare const schnorrAsync: {
276276
signAsync: typeof signAsyncSchnorr;
277277
verifyAsync: typeof verifyAsyncSchnorr;
278278
};
279-
export { etc, getPublicKey, getSharedSecret, hash, hashes, keygen, Point, recoverPublicKey, recoverPublicKeyAsync, schnorr, schnorrAsync, sign, signAsync, Signature, utils, verify, verifyAsync };
279+
export { etc, getPublicKey, getSharedSecret, hash, hashes, keygen, Point, recoverPublicKey, recoverPublicKeyAsync, schnorr, schnorrAsync, sign, signAsync, Signature, utils, verify, verifyAsync, };

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,4 +1043,4 @@ const wNAF = (n) => {
10431043
return { p, f }; // return both real and fake points for JIT
10441044
};
10451045
// !! Remove the export below to easily use in REPL / browser console
1046-
export { etc, getPublicKey, getSharedSecret, hash, hashes, keygen, Point, recoverPublicKey, recoverPublicKeyAsync, schnorr, schnorrAsync, sign, signAsync, Signature, utils, verify, verifyAsync };
1046+
export { etc, getPublicKey, getSharedSecret, hash, hashes, keygen, Point, recoverPublicKey, recoverPublicKeyAsync, schnorr, schnorrAsync, sign, signAsync, Signature, utils, verify, verifyAsync, };

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,5 @@ export {
11671167
Signature,
11681168
utils,
11691169
verify,
1170-
verifyAsync
1170+
verifyAsync,
11711171
};
1172-

package-lock.json

Lines changed: 6 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
],
1010
"devDependencies": {
1111
"@noble/hashes": "2.0.0-beta.5",
12-
"@paulmillr/jsbt": "0.4.2",
12+
"@paulmillr/jsbt": "0.4.3",
1313
"@types/node": "24.2.1",
1414
"fast-check": "4.2.0",
15-
"micro-bmark": "0.4.2",
16-
"micro-should": "0.5.3",
1715
"prettier": "3.6.2",
1816
"typescript": "5.9.2"
1917
},

test/benchmark.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
import { hmac } from '@noble/hashes/hmac.js';
22
import { sha256 } from '@noble/hashes/sha2.js';
3-
import mark from 'micro-bmark';
3+
import mark from '@paulmillr/jsbt/bench.js';
44
import * as curve from '../index.ts';
55

66
(async () => {
77
curve.hashes.sha256 = sha256;
88
curve.hashes.hmacSha256 = (k, m) => hmac(sha256, k, m);
99
let keys, bobKeys, sig, sigr;
1010
const msg = new TextEncoder().encode('hello noble');
11-
await mark('init', 1, () => {
12-
keys = curve.keygen();
13-
bobKeys = curve.keygen();
14-
sig = curve.sign(msg, keys.secretKey);
15-
sigr = curve.sign(msg, keys.secretKey, { format: 'recovered' });
16-
});
11+
await mark(
12+
'init',
13+
() => {
14+
keys = curve.keygen();
15+
bobKeys = curve.keygen();
16+
sig = curve.sign(msg, keys.secretKey);
17+
sigr = curve.sign(msg, keys.secretKey, { format: 'recovered' });
18+
},
19+
1
20+
);
1721
await mark('keygen', () => curve.keygen());
1822
await mark('sign', () => curve.sign(msg, keys.secretKey));
1923
await mark('verify', () => curve.verify(sig, msg, keys.publicKey));

0 commit comments

Comments
 (0)