Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@nthparty/oblivious
Advanced tools
JavaScript library that serves as an API for common primitives used to implement OPRF and OT protocols.
JavaScript library that serves as an API for common primitives used to implement OPRF and OT protocols.
This library provides TypeScript libsodium wrappers for cryptographic primitives that are often used to implement oblivious pseudorandom function (OPRF) and oblivious transfer (OT) protocols.
For more information on the underlying mathematical structures and primitives, consult materials about the Ed25519 system and the Ristretto group.
The package is available on npm:
npm install @nthparty/oblivious
The library can be imported in the usual ways:
const Oblivious = require('path/to/dist/oblivious.js'); // Standalone
const Oblivious = require('path/to/dist/oblivious.slim.js')(sodium); // Slim
const { Oblivious } = require('@nthparty/oblivious'); // Node.js
Oblivious.ready.then(function () {
const p = Oblivious.Point.random();
console.log(p); // Point(32) [Uint8Array] [ ... ]
});
The latest browser-optimized distributions can be found here.
All unit tests are executed and their coverage measured when using
Jest (see jest.config.js
for configuration
details):
npm test
Browser-based tests are located in test/browser/
, and you can run
them either locally, or by visiting the preview.
Style conventions are enforced using ESLint:
eslint src test/oblivious.test.ts
# -OR-
npm run-script lint
In order to contribute to the source code, open an issue or submit a
pull request on the GitHub page for this library. Remember to run
npm run-script lint
on any proposed code changes.
Beginning with version 0.1.0, the version number format for this library and the changes to the library associated with version number increments conform with Semantic Versioning 2.0.0.
FAQs
JavaScript library that serves as an API for common primitives used to implement OPRF and OT protocols.
The npm package @nthparty/oblivious receives a total of 19 weekly downloads. As such, @nthparty/oblivious popularity was classified as not popular.
We found that @nthparty/oblivious demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.