MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / Commit

Method Commit

ecgo/builder/api.go:396–403  ·  view source on GitHub ↗

Commit is faulty in its current implementation as it merely returns a compile-time random number.

(v ...frontend.Variable)

Source from the content-addressed store, hash-verified

394
395// Commit is faulty in its current implementation as it merely returns a compile-time random number.
396func (builder *builder) Commit(v ...frontend.Variable) (frontend.Variable, error) {
397 vars := builder.toVariableIds(v...)
398 builder.instructions = append(builder.instructions, irsource.Instruction{
399 Type: irsource.Commit,
400 Inputs: vars,
401 })
402 return builder.addVar(), nil
403}
404
405// SetGkrInfo is not implemented and will panic if called.
406func (builder *builder) SetGkrInfo(info constraint.GkrInfo) error {

Callers

nothing calls this directly

Calls 2

toVariableIdsMethod · 0.95
addVarMethod · 0.95

Tested by

no test coverage detected