diff --git a/src/lib/Keys.ts b/src/lib/Keys.ts index 76016f364..d3897e602 100644 --- a/src/lib/Keys.ts +++ b/src/lib/Keys.ts @@ -6,14 +6,12 @@ import { encodeBase16, encodeBase64 } from '../index'; import { PublicKey } from '../lib/index'; import { byteHash } from './Contracts'; import eccrypto from "eccrypto"; -// import { ec as EC } from 'elliptic'; import * as secp256k1 from 'ethereum-cryptography/secp256k1'; import KeyEncoder from 'key-encoder'; import { sha256 } from 'ethereum-cryptography/sha256'; import { CasperHDKey } from './CasperHDKey'; const keyEncoder = new KeyEncoder('secp256k1'); -// const ec = new EC('secp256k1'); const ED25519_PEM_SECRET_KEY_TAG = 'PRIVATE KEY'; const ED25519_PEM_PUBLIC_KEY_TAG = 'PUBLIC KEY'; @@ -318,7 +316,6 @@ export class Secp256K1 extends AsymmetricKey { * Generating a new Secp256K1 key pair */ public static new() { - // const keyPair = ec.genKeyPair(); const privateKey = eccrypto.generatePrivate(); const publicKey = Uint8Array.from(eccrypto.getPublicCompressed(privateKey)); return new Secp256K1(publicKey, privateKey);