Discover Packages
github.com/consensys/gnark-crypto
ecc
bw6-633
fr
permutation
package
Version:
v0.14.0
Opens a new window with list of versions in this module.
Published: Sep 3, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package permutation provides an API to build permutation proofs.
View Source
var (
ErrIncompatibleSize = errors .New ("t1 and t2 should be of the same size")
ErrSize = errors .New ("t1 and t2 should be of size a power of 2")
ErrPermutationProof = errors .New ("permutation proof verification failed")
ErrGenerator = errors .New ("wrong generator")
)
Verify verifies a permutation proof.
Proof proof that the commitments of t1 and t2 come from
the same vector but permuted.
Prove generates a proof that t1 and t2 are the same but permuted.
The size of t1 and t2 should be the same and a power of 2.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.