aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-05 19:13:52 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-05 19:13:52 +0200
commit98acbe83fc9535f3873b48301d559c2c28d5cf50 (patch)
tree034e4766e757672a2d5a98ed6deafcfa82399843
parentMerge pull request #3346 (diff)
parentremove unused function keyImageV (diff)
downloadmonero-98acbe83fc9535f3873b48301d559c2c28d5cf50.tar.xz
Merge pull request #3348
c95dddd2 remove unused function keyImageV (h908714124)
-rw-r--r--src/ringct/rctSigs.cpp18
-rw-r--r--src/ringct/rctSigs.h2
2 files changed, 0 insertions, 20 deletions
diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp
index 3a30e6320..ae0ee21c8 100644
--- a/src/ringct/rctSigs.cpp
+++ b/src/ringct/rctSigs.cpp
@@ -130,29 +130,12 @@ namespace rct {
return equalKeys(eeComputed, bb.ee);
}
- //Multilayered Spontaneous Anonymous Group Signatures (MLSAG signatures)
- //These are aka MG signatutes in earlier drafts of the ring ct paper
- // c.f. http://eprint.iacr.org/2015/1098 section 2.
- // keyImageV just does I[i] = xx[i] * Hash(xx[i] * G) for each i
- // Gen creates a signature which proves that for some column in the keymatrix "pk"
- // the signer knows a secret key for each row in that column
- // Ver verifies that the MG sig was created correctly
- keyV keyImageV(const keyV &xx) {
- keyV II(xx.size());
- size_t i = 0;
- for (i = 0; i < xx.size(); i++) {
- II[i] = scalarmultKey(hashToPoint(scalarmultBase(xx[i])), xx[i]);
- }
- return II;
- }
-
//Multilayered Spontaneous Anonymous Group Signatures (MLSAG signatures)
//This is a just slghtly more efficient version than the ones described below
//(will be explained in more detail in Ring Multisig paper
//These are aka MG signatutes in earlier drafts of the ring ct paper
// c.f. http://eprint.iacr.org/2015/1098 section 2.
- // keyImageV just does I[i] = xx[i] * Hash(xx[i] * G) for each i
// Gen creates a signature which proves that for some column in the keymatrix "pk"
// the signer knows a secret key for each row in that column
// Ver verifies that the MG sig was created correctly
@@ -250,7 +233,6 @@ namespace rct {
//(will be explained in more detail in Ring Multisig paper
//These are aka MG signatutes in earlier drafts of the ring ct paper
// c.f. http://eprint.iacr.org/2015/1098 section 2.
- // keyImageV just does I[i] = xx[i] * Hash(xx[i] * G) for each i
// Gen creates a signature which proves that for some column in the keymatrix "pk"
// the signer knows a secret key for each row in that column
// Ver verifies that the MG sig was created correctly
diff --git a/src/ringct/rctSigs.h b/src/ringct/rctSigs.h
index 17047fc0f..7485938ee 100644
--- a/src/ringct/rctSigs.h
+++ b/src/ringct/rctSigs.h
@@ -70,11 +70,9 @@ namespace rct {
//Multilayered Spontaneous Anonymous Group Signatures (MLSAG signatures)
//These are aka MG signatutes in earlier drafts of the ring ct paper
// c.f. http://eprint.iacr.org/2015/1098 section 2.
- // keyImageV just does I[i] = xx[i] * HashToPoint(xx[i] * G) for each i
// Gen creates a signature which proves that for some column in the keymatrix "pk"
// the signer knows a secret key for each row in that column
// Ver verifies that the MG sig was created correctly
- keyV keyImageV(const keyV &xx);
mgSig MLSAG_Gen(const key &message, const keyM & pk, const keyV & xx, const multisig_kLRki *kLRki, key *mscout, const unsigned int index, size_t dsRows, hw::device &hwdev);
bool MLSAG_Ver(const key &message, const keyM &pk, const mgSig &sig, size_t dsRows);
//mgSig MLSAG_Gen_Old(const keyM & pk, const keyV & xx, const int index);