Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Monoid ts => ToTranscript ts a where Source #
toTranscript :: a -> ts Source #
Instances
Binary a => ToTranscript ByteString a Source # | |
Defined in ZkFold.Base.Protocol.NonInteractiveProof.Internal toTranscript :: a -> ByteString Source # |
transcript :: ToTranscript ts a => ts -> a -> ts Source #
class Monoid ts => FromTranscript ts a where Source #
fromTranscript :: ts -> a Source #
Instances
Binary a => FromTranscript ByteString a Source # | |
Defined in ZkFold.Base.Protocol.NonInteractiveProof.Internal fromTranscript :: ByteString -> a Source # |
challenge :: forall ts a. FromTranscript ts a => ts -> a Source #
challenges :: (ToTranscript ts Word8, FromTranscript ts a) => ts -> Natural -> ([a], ts) Source #
class NonInteractiveProof a core where Source #
setupProve :: a -> SetupProve a Source #
setupVerify :: a -> SetupVerify a Source #
prove :: SetupProve a -> Witness a -> (Input a, Proof a) Source #
verify :: SetupVerify a -> Input a -> Proof a -> Bool Source #
Instances
class EllipticCurve curve => CoreFunction curve core where Source #
msm :: f ~ ScalarField curve => Vector (Point curve) -> PolyVec f size -> Point curve Source #
polyMul :: (f ~ ScalarField curve, Field f, Eq f) => Poly f -> Poly f -> Poly f Source #
Instances
(EllipticCurve curve, f ~ ScalarField curve) => CoreFunction (curve :: k) HaskellCore Source # | |
data HaskellCore Source #
Instances
(EllipticCurve curve, f ~ ScalarField curve) => CoreFunction (curve :: k) HaskellCore Source # | |