diff --git a/std/fiat-shamir/transcript.go b/std/fiat-shamir/transcript.go index c9c64d228..f8c69aa1f 100644 --- a/std/fiat-shamir/transcript.go +++ b/std/fiat-shamir/transcript.go @@ -101,10 +101,10 @@ func (t *Transcript) Bind(challengeID string, values []frontend.Variable) error // ComputeChallenge computes the challenge corresponding to the given name. // The resulting variable is: -// * H(name ∥ previous_challenge ∥ binded_values...) if the challenge is not the first one -// * H(name ∥ binded_values... ) if it's is the first challenge +// - H(name ∥ previous_challenge ∥ binded_values...) if the challenge is not the first one +// - H(name ∥ binded_values... ) if it's is the first challenge func (t *Transcript) ComputeChallenge(challengeID string) (frontend.Variable, error) { - + var err error challenge, ok := t.challenges[challengeID] if !ok {