mirror of
https://github.com/monero-project/monero.git
synced 2026-01-02 07:50:16 -08:00
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:
committed by
moneromooo-monero
parent
37c895e5e3
commit
4fd01f2bee
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user