Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Monoid t => ToTranscript t a where Source #
toTranscript :: a -> t Source #
Instances
Binary a => ToTranscript ByteString a Source # | |
Defined in ZkFold.Base.Protocol.NonInteractiveProof toTranscript :: a -> ByteString Source # |
transcript :: ToTranscript t a => t -> a -> t Source #
class Monoid t => FromTranscript t a where Source #
newTranscript :: t -> t Source #
fromTranscript :: t -> a Source #
Instances
Binary a => FromTranscript ByteString a Source # | |
Defined in ZkFold.Base.Protocol.NonInteractiveProof newTranscript :: ByteString -> ByteString Source # fromTranscript :: ByteString -> a Source # |
challenge :: forall t a. FromTranscript t a => t -> (a, t) Source #
challenges :: FromTranscript t a => t -> Natural -> ([a], t) Source #
class NonInteractiveProof a where Source #
type Transcript a Source #
Instances
(KnownNat d, KnownNat (PlonkPermutationSize d), KnownNat (PlonkMaxPolyDegree d), ToTranscript t F, ToTranscript t G1, FromTranscript t F) => NonInteractiveProof (Plonk d t) Source # | |
(f ~ ScalarField c1, f ~ ScalarField c2, Pairing c1 c2 t, Binary f, KnownNat d, KZG c1 c2 t f d ~ kzg, Num f, Ord f, Ring f, Finite f, Field f, AdditiveGroup (BaseField c1), Binary (BaseField c1)) => NonInteractiveProof (KZG c1 c2 t f d) Source # | |
data ProveAPIResult Source #
Instances
proveAPI :: forall a. (NonInteractiveProof a, Binary (Setup a), Binary (Witness a), Binary (Input a), Binary (Proof a)) => ByteString -> ByteString -> ProveAPIResult Source #