Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
test: remove unnecessary slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
noel committed Aug 20, 2021
1 parent b9a0c0f commit 48e1868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zilliqa-js-crypto/test/schnorr.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const secp256k1 = elliptic.ec('secp256k1');

describe('schnorr', () => {
it('should fail for bad signatures', () => {
schnorrVectors.slice(0, 100).forEach(({ priv, k }, idx) => {
schnorrVectors.forEach(({ priv, k }, idx) => {
const pub = secp256k1.keyFromPrivate(priv, 'hex').getPublic(true, 'hex');
const badPrivateKey = pairs[0].private;

Expand Down Expand Up @@ -157,7 +157,7 @@ describe('schnorr', () => {
});

it('should match the C++ Schnorr implementation', () => {
schnorrVectors.slice(0, 100).forEach(({ msg, priv, pub, k, r, s }) => {
schnorrVectors.forEach(({ msg, priv, pub, k, r, s }) => {
let sig: Signature | null = null;
while (!sig) {
sig = schnorr.trySign(
Expand Down

0 comments on commit 48e1868

Please sign in to comment.