You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because in my way to generate ed25519 keys:
letED25519_BASEPOINT_POINT_MUL_BY_COFACTOR = ED25519_BASEPOINT_POINT.mul_by_cofactor();// Not constant at the momentletmut rng = Rng::new();let expanded_sk:[u8;32] =
Sha512::default().chain_update({letmut sk = SecretKey::default();
rng.fill(&mut sk);
sk
}).finalize()[..32].try_into().unwrap();letmut count:usize = 0;letmut pk = ED25519_BASEPOINT_POINT.mul_clamped(expanded_sk);loop{// foo(pk.compress().to_bytes());
count += 1;
pk += ED25519_BASEPOINT_POINT_MUL_BY_COFACTOR;}// expanded_sk += 8 * count;
The performance improved the generation by 3 orders of magnitude, so now the Edwards point compression is the only hot path now. Is it possible to do addition arithmetic on compressed Edwards point directly?
The text was updated successfully, but these errors were encountered:
Derived from #705 and some discussion online, I find this constant particularly useful:
This is because in my way to generate ed25519 keys:
The performance improved the generation by 3 orders of magnitude, so now the Edwards point compression is the only hot path now. Is it possible to do addition arithmetic on compressed Edwards point directly?
The text was updated successfully, but these errors were encountered: