fixing Z(x), VkIC, Vkz, piH calculations

This commit is contained in:
arnaucube
2019-04-22 23:23:40 +02:00
parent 6ac73415ab
commit 7d0c2ad53c
7 changed files with 192 additions and 131 deletions

View File

@@ -153,6 +153,7 @@ type Inputs struct {
}
// CalculateWitness calculates the Witness of a Circuit based on the given inputs
// witness = [ one, output, publicInputs, privateInputs, ...]
func (circ *Circuit) CalculateWitness(inputs []*big.Int) ([]*big.Int, error) {
if len(inputs) != len(circ.Inputs) {
return []*big.Int{}, errors.New("given inputs != circuit.Inputs")