mirror of
https://github.com/arnaucube/go-snark-study.git
synced 2026-02-02 17:26:41 +01:00
fixing Z(x), VkIC, Vkz, piH calculations
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user