https://github.com/cloudflare/privacypass-ts
A TypeScript Library for the Privacy Pass Issuance Protocol
https://github.com/cloudflare/privacypass-ts
blindrsa cryptography privacy-pass token typescript voprf
Last synced: about 1 year ago
JSON representation
A TypeScript Library for the Privacy Pass Issuance Protocol
- Host: GitHub
- URL: https://github.com/cloudflare/privacypass-ts
- Owner: cloudflare
- License: other
- Created: 2023-08-10T15:55:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-14T08:45:44.000Z (about 1 year ago)
- Last Synced: 2025-06-03T08:45:58.038Z (about 1 year ago)
- Topics: blindrsa, cryptography, privacy-pass, token, typescript, voprf
- Language: TypeScript
- Homepage:
- Size: 355 KB
- Stars: 22
- Watchers: 13
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@cloudflare/privacypass-ts) [](LICENSE.txt)
[](https://www.npmjs.com/package/@cloudflare/privacypass-ts)
# privacypass-ts: A TypeScript Library for the Privacy Pass Issuance Protocol
**Specification:** Compliant with IETF [draft-ietf-privacypass-protocol](https://datatracker.ietf.org/doc/draft-ietf-privacypass-protocol/), [draft-hendrickson-privacypass-public-metadata-03](https://datatracker.ietf.org/doc/draft-hendrickson-privacypass-public-metadata/) and tests vectors match with draft [v11](https://datatracker.ietf.org/doc/draft-ietf-privacypass-protocol/11/).
**Support:**
- Public-Verifiable tokens (Blind-RSA)
- Public-Verifiable tokens with Metadata (Partially-Blind-RSA)
- Private-Verifiable tokens (VOPRF)
**Usage:**
We provide examples in the [examples folder](examples).
### Limitations
- Public-Verifiable tokens with Metadata verification is not supported in browser environments. This is due to @cloudflare/blindrsa-ts [not supporting them](https://github.com/cloudflare/blindrsa-ts?tab=readme-ov-file#platform-specific-configuration).
### Development
| Task | NPM scripts |
|-----------------|----------------------|
| Installing | `$ npm ci` |
| Building | `$ npm run build` |
| Unit Tests | `$ npm run test` |
| Examples | `$ npm run examples` |
| Benchmarking | `$ npm run bench` |
| Code Linting | `$ npm run lint` |
| Code Formatting | `$ npm run format` |
### License
The project is licensed under the [Apache-2.0](LICENSE.txt) License.