Skip to content

Commit

Permalink
rename gi to Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrezot committed Feb 11, 2025
1 parent f44a970 commit 751e763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ impl MasterPublicKey {
/// Generates traps for the given scalar.
// TODO: find a better concept.
fn set_traps(&self, r: &Scalar) -> Vec<EcPoint> {
self.tpk.0.iter().map(|gi| gi * r).collect()
self.tpk.0.iter().map(|Pi| Pi * r).collect()
}

/// Returns the subkeys associated with the given rights in this public key,
Expand Down Expand Up @@ -461,7 +461,7 @@ impl UserSecretKey {
}

fn set_traps(&self, r: &Scalar) -> Vec<EcPoint> {
self.ps.iter().map(|gi| gi * r).collect()
self.ps.iter().map(|Pi| Pi * r).collect()
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub fn usk_keygen(

Ok(UserSecretKey {
id,
ps: msk.tsk.tracers.iter().map(|(_, gi)| gi).cloned().collect(),
ps: msk.tsk.tracers.iter().map(|(_, Pi)| Pi).cloned().collect(),
secrets: coordinate_keys,
signature,
})
Expand Down

0 comments on commit 751e763

Please sign in to comment.