ringct: "simple" ringct variant

Allows the fake outs to be in different positions for each ring.
For rct inputs only.
This commit is contained in:
Shen Noether
2016-07-09 19:30:28 +01:00
committed by moneromooo-monero
parent 37c895e5e3
commit 4fd01f2bee
6 changed files with 262 additions and 3 deletions

View File

@@ -150,6 +150,12 @@ namespace rct {
return make_tuple(sk, pk);
}
//generates C =aG + bH from b, a is given..
void genC(key & C, const key & a, xmr_amount amount) {
key bH = scalarmultH(d2h(amount));
addKeys1(C, a, bH);
}
//generates a <secret , public> / Pedersen commitment to the amount
tuple<ctkey, ctkey> ctskpkGen(xmr_amount amount) {
ctkey sk, pk;