Skip to content

Commit

Permalink
Update hash.md
Browse files Browse the repository at this point in the history
Add dev comments for when inputSize should be t or (t-1)
  • Loading branch information
jeremyfelder authored Nov 10, 2024
1 parent 79f9df2 commit 77bc91c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/icicle/golang-bindings/hash.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ import (

batch := 1 << 4
t := 3 // Currently support arity of 3, 5, 9, 12
// (t - 1) is due to domainTag being non nil
// if domainTag is nil, then the input size should be `batch * t`
// See more in our tests: https://github.com/ingonyama-zk/icicle/blob/docs/v3/golang/poseidon/wrappers/golang/curves/bn254/tests/poseidon_test.go#L23-L27
inputsSize = batch * (t - 1)
inputs := babybear.GenerateScalars(inputsSize)
domainTag := babybear.GenerateScalars(1)[0]
Expand Down

0 comments on commit 77bc91c

Please sign in to comment.