Skip to content

Commit

Permalink
NFData
Browse files Browse the repository at this point in the history
  • Loading branch information
echatav committed Aug 2, 2024
1 parent 3ebda4b commit fcff79b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ZkFold/Base/Protocol/ARK/Protostar.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module ZkFold.Base.Protocol.ARK.Protostar where


import Control.DeepSeq (NFData)
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as M
import GHC.Generics (Generic)
Expand Down Expand Up @@ -42,7 +43,7 @@ data RecursiveCircuit n a
= RecursiveCircuit
{ iterations :: Natural
, circuit :: ArithmeticCircuit a (Vector n)
} deriving (Generic)
} deriving (Generic, NFData)

instance Arithmetic a => SpecialSoundProtocol a (RecursiveCircuit n a) where
type Witness a (RecursiveCircuit n a) = Map Natural a
Expand Down

0 comments on commit fcff79b

Please sign in to comment.