New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oprf

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oprf

Oblivious pseudo-random function over an elliptic curve (ED25519)

  • 0.9.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-63.64%
Maintainers
2
Weekly downloads
 
Created
Source

OPRF

npm version

Oblivious pseudo-random function over an elliptic curve (ED25519)

Installation

npm install oprf

Security Guarantees

A client has input x while a server holds key k. The client receives the output of fk(x) for some pseudorandom function family fk. The server learns nothing.

Dependencies

Steps

1.) Client: hash input and mask it using a randomly generated 32-byte number

function maskInput(input: string): maskedData

2.) Server: salt the masked point using a secret key

function saltInput(maskedPoint: Array<Number>, key: string): Array<Number>

3.) Client: unmask the salted point from the server to get a high-entropy output

function unmaskInput(salted: Array<Number>, mask: BN): Array<Number>

Implementation inspired by Burns et. al. https://pdfs.semanticscholar.org/5d33/ea1d3fda454875a6a6ee7c535c80c74af512.pdf

FAQs

Package last updated on 10 Sep 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc