dock_crypto_utils

Crates.iodock_crypto_utils
lib.rsdock_crypto_utils
version0.20.0
sourcesrc
created_at2021-09-27 11:50:14.230003
updated_at2024-07-18 17:01:55.657355
descriptionCommon code for Dock's crypto libraries
homepage
repositoryhttps://github.com/docknetwork/crypto
max_upload_size
id456953
size119,363
Lovesh Harchandani (lovesh)

documentation

README

A collection of utilities used by our other libraries in this workspace.

  • Pedersen commitment
  • Elgamal encryption
  • finite field utilities like inner product, weighted inner product, hadamard product, etc.
  • multiscalar multiplication (MSM) like Fixed Base MSM
  • polynomial utilities like multiplying polynomials, creating polynomial from roots, etc.
  • An efficient way to check several equality relations involving pairings by combining the relations in a random linear combination and doing a multi-pairing check. Relies on Schwartz–Zippel lemma.
  • hashing utilities like hashing arbitrary bytes to field element or group element.
  • solving discrete log using Baby Step Giant Step algorithm
Commit count: 260

cargo fmt