Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

feat: impl privacypass v1 with @noble/curves #3770

Draft
wants to merge 69 commits into
base: main
Choose a base branch
from

Conversation

sublimator
Copy link
Member

@sublimator sublimator commented Apr 25, 2023

Implement the old version of privacy (that implemented in privacypass/challenge-bypass-xxxx ) using @noble/curves rather than sjcl.

The original protocol

@sublimator sublimator changed the title feat: impl privacypass with @noble/curves feat: impl privacypass v1 with @noble/curves May 2, 2023
- Rename normalize function to normalizeB64 for clarity
- Rename base64urlToBigInt to b64urlToBigInt for consistency
- Optimize b64urlToBytes function by using a for loop instead of spread
  operator and Array.prototype.map
- Update the usage of the renamed functions in blindrsa.ts
…irectory

This commit moves all VOPRF-related types and functions into a new 'voprf'
subdirectory within the 'crypto' directory. The purpose of this change is to
better organize the code and make it easier to maintain and navigate. All
import statements have been updated to reflect the new file locations.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant