oprf

package
v0.0.0-...-2e485aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package oprf implements the server side of a robust OPRF.

The OPRF is based on 2HashDH and a Chaum-Pedersen DLEQ proof. See the Rust implementation in the Juicebox SDK for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlindEvaluate

func BlindEvaluate(
	privateKey *types.OprfPrivateKey,
	publicKey *types.OprfPublicKey,
	blindedInput *types.OprfBlindedInput,
	cryptoRng io.Reader,
) (*types.OprfBlindedResult, *types.OprfProof, error)

BlindEvaluate runs the OPRF evaluation and generates a proof on the server.

It returns errors from decoding inputs and reading the given RNG.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL