mirror of
https://github.com/arnaucube/go-blindsecp256k1.git
synced 2026-02-07 03:26:40 +01:00
Previous to this commit there was the implementation of "[An Efficient Blind Signature Scheme Based on the Elliptic Curve Discrete Logarithm Problem](http://www.isecure-journal.com/article_39171_47f9ec605dd3918c2793565ec21fcd7a.pdf)" paper by by Morteza Nikooghadama & Ali Zakerolhosseini. This commit adds the implementation of "[New Blind Signature Schemes Based on the (Elliptic Curve) Discrete Logarithm Problem](https://sci-hub.do/10.1109/ICCKE.2013.6682844)" paper by Hamid Mala & Nafiseh Nezhadansari.
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,7 @@
|
||||
function test() {
|
||||
let m = "1952805748";
|
||||
|
||||
console.log("using: https://sci-hub.do/10.1109/ICCKE.2013.6682844");
|
||||
// Q & R would be received from the Signer
|
||||
let signerQx = "26613296432153871833441195158297038913673464785502568519907582377915678491093";
|
||||
let signerQy = "81940194042971427014176158889809922552127995083760111384335138546589994227275";
|
||||
@@ -11,6 +12,16 @@ function test() {
|
||||
|
||||
// sBlind would be received from the Signer
|
||||
let sBlind = "7240298625621589352655632414257224668430424461224914067754717095121139699933353374227084479180038954015287518505167995306229258561275087198611946596619855";
|
||||
let unblindRes = unblind(sBlind, m, blindRes.uB, blindRes.uC, blindRes.uFx, blindRes.uFy);
|
||||
let unblindRes = unblind(sBlind, m, blindRes.uA, blindRes.uB, blindRes.uFx, blindRes.uFy);
|
||||
console.log("unblind", unblindRes);
|
||||
|
||||
// ---
|
||||
// v0
|
||||
console.log("using: http://www.isecure-journal.com/article_39171_47f9ec605dd3918c2793565ec21fcd7a.pdf");
|
||||
// Q & R would be received from the Signer
|
||||
blindRes = blindv0(m, signerQx, signerQy, signerRx, signerRy);
|
||||
console.log("blindv0", blindRes);
|
||||
// sBlind would be received from the Signer
|
||||
unblindRes = unblindv0(sBlind, m, blindRes.uB, blindRes.uC, blindRes.uFx, blindRes.uFy);
|
||||
console.log("unblindv0", unblindRes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user