cloudflare / voprf-ts

A TypeScript library for Oblivious Pseudorandom Functions
BSD 3-Clause "New" or "Revised" License
28 stars 12 forks source link

refactor: Oprf.Crypto -> CryptoImpl.provider #44

Closed sublimator closed 1 year ago

sublimator commented 1 year ago
  1. Transitioned from Oprf.Crypto to CryptoProviderIntermediary exported as CryptoImpl, allowing for overridable provider property.
  2. Fixed dleq equals bug by comparing hashID instead of hash functions.
  3. Renamed describeGroupTests to describeCryptoTests, now honors CRYPTO_PROVIDER env var.
  4. Resolved circular dependency between dleq and oprf by depending on CryptoImpl.
  5. Updated DLEQParams to use CryptoImpl.hash directly, removing the need to specify a hash function.
  6. Updated benchmarks to test both providers and honor CRYPTO_PROVIDER env variable for provider selection.