TODO: Do we need bits check for the count?
(field *big.Int, inputs []*big.Int, outputs []*big.Int)
| 16 | |
| 17 | // TODO: Do we need bits check for the count? |
| 18 | func 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 | |
| 30 | func QueryCountBaseKeysHintFn(field *big.Int, inputs []*big.Int, outputs []*big.Int) error { |
| 31 | for i := 0; i < len(outputs); i++ { |