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

Function QueryCountHintFn

circuit-std-go/logup/hint.go:18–28  ·  view source on GitHub ↗

TODO: Do we need bits check for the count?

(field *big.Int, inputs []*big.Int, outputs []*big.Int)

Source from the content-addressed store, hash-verified

16
17// TODO: Do we need bits check for the count?
18func QueryCountHintFn(field *big.Int, inputs []*big.Int, outputs []*big.Int) error {
19 for i := 0; i < len(outputs); i++ {
20 outputs[i] = big.NewInt(0)
21 }
22
23 for i := 0; i < len(inputs); i++ {
24 query_id := inputs[i].Int64()
25 outputs[query_id].Add(outputs[query_id], big.NewInt(1))
26 }
27 return nil
28}
29
30func QueryCountBaseKeysHintFn(field *big.Int, inputs []*big.Int, outputs []*big.Int) error {
31 for i := 0; i < len(outputs); i++ {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected