A collection of cryptography primitives written in Rust.
This library contains primarily the following cryptographic primitives:
- The Tip5 hash function
- Lattice-crypto
- arithmetic for the quotient ring
$\mathbb{F}_ p[X] / \langle X^{64} + 1 \rangle$ - arithmetic for modules over this quotient ring
- a IND-CCA2-secure key encapsulation mechanism
- Lattice-Based Cryptography in Miden VM
- arithmetic for the quotient ring
-
BFieldElement,XFieldElement- The prime-field type
$\mathbb{F}_p$ where$p = 2^{64} - 2^{32} + 1$ - The extension field
$\mathbb{F}_p[x]/(x^3 - x + 1)$ - A codec trait for encoding and decoding structs as
Vecs ofBFieldElement - An efficient prime for number-theoretic transforms
- The prime-field type
- NTT
- Number Theoretic Transform (discrete Fast Fourier Transform)
- Anatomy of a STARK, Part 6: Speeding Things Up
- Univariate polynomials
- Merkle Trees
- Merkle Mountain Ranges
The twenty-first library can be built for WebAssembly. See the dedicated readme for
further information.