Skip to content

Commit 4ca03c1

Browse files
committed
chore(wbn-sign): fix ESLint errors
Remove the unused `crypto` import from integrity-block-signer.ts and unused destructured variables from utils_test.js, so that `npx eslint .` passes.
1 parent 931ed0e commit 4ca03c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎js/sign/src/signers/integrity-block-signer.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert';
2-
import crypto, { KeyObject } from 'crypto';
2+
import { KeyObject } from 'crypto';
33

44
import { encode } from 'cborg';
55

‎js/sign/tests/utils_test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as utils from '../lib/utils/utils.js';
66
describe('Utils', () => {
77
describe('parseRawPublicKey', () => {
88
it('correctly parses an Ed25519 raw public key', () => {
9-
const { publicKey, privateKey } = crypto.generateKeyPairSync('ed25519');
9+
const { publicKey } = crypto.generateKeyPairSync('ed25519');
1010
// Export to raw bytes
1111
const spki = publicKey.export({ type: 'spki', format: 'der' });
1212
const rawPublicKey = new Uint8Array(spki.subarray(-32));
@@ -23,7 +23,7 @@ describe('Utils', () => {
2323
});
2424

2525
it('correctly parses an ECDSA P-256 raw public key (compressed)', () => {
26-
const { publicKey, privateKey } = crypto.generateKeyPairSync('ec', {
26+
const { publicKey } = crypto.generateKeyPairSync('ec', {
2727
namedCurve: 'prime256v1',
2828
});
2929
const spki = publicKey.export({ type: 'spki', format: 'der' });

0 commit comments

Comments
 (0)