Skip to content

Commit

Permalink
Bench: compressed keys
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 6, 2023
1 parent 2cba19b commit 73cf04e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ run(async (windowSize) => {
// secp.getPublicKey('7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfcb');
// });
await mark('getPublicKey(utils.randomPrivateKey())', 5000, () => {
secp.getPublicKey(secp.utils.randomPrivateKey());
secp.getPublicKey(secp.utils.randomPrivateKey(), true);
});

const priv = 'f6fc7fd5acaf8603709160d203253d5cd17daa307483877ad811ec8411df56d2';
const pub = secp.getPublicKey(priv, false);
const pub = secp.getPublicKey(priv, true);
const priv2 = '2e63f49054e1e44ccc2e6ef6ce387936efb16158f89cc302a2426e0b7fd66f66';
const pub2 = secp.getPublicKey(priv2, false);
const pub2 = secp.getPublicKey(priv2, true);
const msg = 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef';
const signature = await secp.sign(msg, priv);

Expand Down

0 comments on commit 73cf04e

Please sign in to comment.