mattrglobal / pairing_crypto

A library for pairing based cryptography
Apache License 2.0
14 stars 7 forks source link

Add support for pre-computed generators and cached generator state #53

Closed dev0x1 closed 2 years ago

dev0x1 commented 2 years ago

In the existing approach, we compute all generators in one go during the instantiation of the Generators struct. These generators are stored in RAM and later retrieved using an index/iterator. To support memory-constrained systems, we can trade memory with compute performance and can implement a type of Generators which computes the generator when it is retrieved using an index/iterator.