github.com/consensys/gnark-crypto@v0.14.0/ecc/bw6-633/fr/pedersen/doc.go (about) 1 // Copyright 2020 Consensys Software Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by consensys/gnark-crypto DO NOT EDIT 16 17 // Package pedersen allows to compute and verify Pedersen vector commitments 18 // 19 // Pedersen vector commitments are a type of homomorphic commitments that allow 20 // to commit to a vector of values and prove knowledge of the committed values. 21 // The commitments can be batched and verified in a single operation. 22 // 23 // The commitments are computed using a set of basis elements. The proving key 24 // contains the basis elements and their exponentiations by a random value. The 25 // verifying key contains the G2 generator and its exponentiation by the inverse 26 // of the random value. 27 // 28 // The setup process is a trusted setup and must be done securely, preferably using MPC. 29 // After the setup, the proving key does not have to be secret, but the randomness 30 // used during the setup must be discarded. 31 package pedersen