Skip to content

Commit

Permalink
fix: remove unused const
Browse files Browse the repository at this point in the history
  • Loading branch information
aulneau authored and reedrosenbluth committed Jul 26, 2021
1 parent 3e55c94 commit e506cf3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/encryption/src/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export function getPublicKeyFromPrivate(privateKey: string | Buffer) {
const privateKeyBuffer = Buffer.isBuffer(privateKey)
? privateKey
: Buffer.from(privateKey, 'hex');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const realBuffer = require('buffer').Buffer;
const keyPair = ECPair.fromPrivateKey(privateKeyBuffer);
return keyPair.publicKey.toString('hex');
}
Expand Down

0 comments on commit e506cf3

Please sign in to comment.