Remove keypair test

This commit is contained in:
dapplion 2020-11-25 16:11:44 +00:00
parent 49d509aca4
commit 0e69b819e0
1 changed files with 0 additions and 27 deletions

View File

@ -1,27 +0,0 @@
// import {expect} from "chai";
// import {IBls} from "../../src/interface";
// export function runKeypairTests(bls: IBls) {
// describe("Keypair", () => {
// it("should create from private and public key", () => {
// const sk = bls.PrivateKey.fromKeygen();
// const sk2 = bls.PrivateKey.fromKeygen();
// const pk = sk.toPublicKey();
// const keypair = new bls.Keypair(sk, pk);
// expect(keypair.publicKey).to.be.equal(pk);
// expect(keypair.privateKey).to.be.equal(sk);
// expect(keypair.privateKey).to.not.be.equal(sk2);
// });
// it("should create from PrivateKey", () => {
// const sk = bls.PrivateKey.fromKeygen();
// const pk = sk.toPublicKey();
// const keypair = new bls.Keypair(sk as any);
// expect(keypair.publicKey.toHex()).to.equal(pk.toHex());
// });
// });
// }