mirror of
https://github.com/monero-project/monero.git
synced 2026-01-19 08:01:00 -08:00
CLSAG signatures
This commit is contained in:
committed by
moneromooo-monero
parent
c695470cff
commit
4b328c6616
@@ -511,6 +511,23 @@ namespace rct {
|
||||
ge_tobytes(aAbB.bytes, &rv);
|
||||
}
|
||||
|
||||
// addKeys_aGbBcC
|
||||
// computes aG + bB + cC
|
||||
// G is the fixed basepoint and B,C require precomputation
|
||||
void addKeys_aGbBcC(key &aGbBcC, const key &a, const key &b, const ge_dsmp B, const key &c, const ge_dsmp C) {
|
||||
ge_p2 rv;
|
||||
ge_triple_scalarmult_base_vartime(&rv, a.bytes, b.bytes, B, c.bytes, C);
|
||||
ge_tobytes(aGbBcC.bytes, &rv);
|
||||
}
|
||||
|
||||
// addKeys_aAbBcC
|
||||
// computes aA + bB + cC
|
||||
// A,B,C require precomputation
|
||||
void addKeys_aAbBcC(key &aAbBcC, const key &a, const ge_dsmp A, const key &b, const ge_dsmp B, const key &c, const ge_dsmp C) {
|
||||
ge_p2 rv;
|
||||
ge_triple_scalarmult_precomp_vartime(&rv, a.bytes, A, b.bytes, B, c.bytes, C);
|
||||
ge_tobytes(aAbBcC.bytes, &rv);
|
||||
}
|
||||
|
||||
//subtract Keys (subtracts curve points)
|
||||
//AB = A - B where A, B are curve points
|
||||
|
||||
Reference in New Issue
Block a user