Skip to content

Commit

Permalink
Increase generators in FCMP++
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Jan 17, 2025
1 parent b51c8bb commit d06d951
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions networks/monero/ringct/fcmp++/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ pub fn HELIOS_GENERATORS() -> &'static Generators<Helios> {
HELIOS_GENERATORS_CELL.get_or_init(|| {
let g = hash_to_point_on_curve::<Helios>(b"Monero Helios G");
let h = hash_to_point_on_curve::<Helios>(b"Monero Helios H");
let mut g_bold = Vec::with_capacity(512);
let mut h_bold = Vec::with_capacity(512);
for i in 0u32 .. 512 {
let mut g_bold = Vec::with_capacity(2048);
let mut h_bold = Vec::with_capacity(2048);
for i in 0u32 .. 2048 {
let mut g_buf = b"Monero Helios G ".to_vec();
write_varint(&i, &mut g_buf).unwrap();
g_bold.push(hash_to_point_on_curve::<Helios>(&g_buf));
Expand All @@ -130,9 +130,9 @@ pub fn SELENE_GENERATORS() -> &'static Generators<Selene> {
SELENE_GENERATORS_CELL.get_or_init(|| {
let g = hash_to_point_on_curve::<Selene>(b"Monero Selene G");
let h = hash_to_point_on_curve::<Selene>(b"Monero Selene H");
let mut g_bold = Vec::with_capacity(512);
let mut h_bold = Vec::with_capacity(512);
for i in 0u32 .. 512 {
let mut g_bold = Vec::with_capacity(4096);
let mut h_bold = Vec::with_capacity(4096);
for i in 0u32 .. 4096 {
let mut g_buf = b"Monero Selene G ".to_vec();
write_varint(&i, &mut g_buf).unwrap();
g_bold.push(hash_to_point_on_curve::<Selene>(&g_buf));
Expand Down

0 comments on commit d06d951

Please sign in to comment.