More work on split key protocol.
This commit is contained in:
parent
77debc1d4f
commit
50b13d2941
4 changed files with 153 additions and 36 deletions
test
12
test/test.js
12
test/test.js
|
@ -98,3 +98,15 @@ test("Signing and Verifying", function () {
|
|||
);
|
||||
ok(Bitcoin.ECDSA.verify(hash2, sig_c, s2), "Verify constant signature");
|
||||
});
|
||||
|
||||
//
|
||||
// Testing Paillier
|
||||
// -----------------------------------------------------------------------------
|
||||
module("paillier");
|
||||
|
||||
test("Classes", function () {
|
||||
expect(3);
|
||||
ok(Bitcoin.Paillier, "Bitcoin.Paillier");
|
||||
ok(Bitcoin.Paillier.PublicKey, "Bitcoin.Paillier.PublicKey");
|
||||
ok(Bitcoin.Paillier.PrivateKey, "Bitcoin.Paillier.PrivateKey");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue