mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 20:59:23 +00:00
lazy_static, if no_std environments were used, effectively required always using spin locks. This resolves the ergonomics of that while adopting Rust std code. no_std does still use a spin based solution. Theoretically, we could use atomics, yet writing our own Mutex wasn't a priority.
Monero Generators
Generators used by Monero in both its Pedersen commitments and Bulletproofs(+).
An implementation of Monero's ge_fromfe_frombytes_vartime, simply called
hash_to_point here, is included, as needed to generate generators.
This library is usable under no_std when the alloc feature is enabled.