github.com/consensys/gnark-crypto@v0.14.0/fiat-shamir/settings.go (about) 1 package fiatshamir 2 3 import "hash" 4 5 type Settings struct { 6 Transcript *Transcript 7 Prefix string 8 BaseChallenges [][]byte 9 Hash hash.Hash 10 } 11 12 func WithTranscript(transcript *Transcript, prefix string, baseChallenges ...[]byte) Settings { 13 return Settings{ 14 Transcript: transcript, 15 Prefix: prefix, 16 BaseChallenges: baseChallenges, 17 } 18 } 19 20 func WithHash(hash hash.Hash, baseChallenges ...[]byte) Settings { 21 return Settings{ 22 BaseChallenges: baseChallenges, 23 Hash: hash, 24 } 25 }