lav-vrf 0.0.1

Pure Rust implementation of LaV, an experimental lattice-based verifiable random function (VRF)
Documentation
  • Coverage
  • 0.24%
    1 out of 415 items documented0 out of 130 items with examples
  • Size
  • Source code size: 564.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.9 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustCrypto/VRFs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tarcieri

RustCrypto: LaV (Lattice VRF)

Crate Docs Build Status License MSRV Project Chat

Pure Rust implementation of LaV, a stateless lattice-based verifiable random function (VRF) designed for post-quantum security.

Documentation

About

LaV lets the holder of a secret key compute a pseudorandom value for a message and prove to anyone with the public key that it is the correct value for that message. The key can be used for many messages without keeping track of previous evaluations. Evaluating the same message twice under the same key gives the same value, even though the two proofs can differ.

LaV hashes the message to a vector, takes its inner product with the secret key, and rounds the result. A zero-knowledge proof lets the verifier check this computation using the public key. The construction is described in Efficient Hybrid Exact/Relaxed Lattice Proofs and Applications to Rounding and VRFs by Muhammed F. Esgin, Ron Steinfeld, Dongxi Liu, and Sushmita Ruj (CRYPTO 2023).

Status

This initial release is an experimental C2Rust translation of Raymond K. Zhao's C implementation. It exposes the original pointer-based API through unsafe Rust functions.

The known-answer tests check key generation, evaluation, and verification against the C implementation on 32-bit and 64-bit x86 CPUs with AES, SSSE3, AVX2, and FMA. On AArch64 the tests currently cover only the shared arithmetic.

Minimum Supported Rust Version

This crate requires Rust 1.85 or newer.

License

RustCrypto contributions are dual-licensed under the Apache License, Version 2.0 or the MIT license, at your option. The code translated from the C implementation is covered by the BSD Zero Clause License.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.