Discover Packages
github.com/liyue201/gnark-crypto
ecc
bls24-315
fr
permutation
package
Version:
v0.0.0-...-69a8e72
Opens a new window with list of versions in this module.
Published: Nov 11, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
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.