cl: give a name to the balance unit point in zero commitment

This commit is contained in:
David Rusu 2024-07-22 19:02:30 +04:00
parent 6463d9c65b
commit 247f3f042b
1 changed files with 2 additions and 5 deletions

View File

@ -23,11 +23,8 @@ impl Balance {
// So we use the generator point as a stand in for the unit point.
//
// TAI: we can optimize this further from `0*G + r*H` to just `r*H` to save a point scalar mult + point addition.
Self(balance(
0,
curve25519_dalek::constants::RISTRETTO_BASEPOINT_POINT,
blinding.0,
))
let unit = curve25519_dalek::constants::RISTRETTO_BASEPOINT_POINT;
Self(balance(0, unit, blinding.0))
}
pub fn to_bytes(&self) -> [u8; 32] {