Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmannjan committed May 24, 2021
1 parent eeafdcf commit 8d9a80f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib/Keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8d9a80f

Please sign in to comment.