Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype KZG c1 c2 (d :: Natural) = KZG (ScalarField c1)
- newtype WitnessKZG c1 c2 d = WitnessKZG {
- runWitness :: Map (ScalarField c1) (Vector (PolyVec (ScalarField c1) d))
- provePolyVecEval :: forall size f. (KnownNat size, FiniteField f, Eq f) => PolyVec f size -> f -> PolyVec f size
Documentation
newtype KZG c1 c2 (d :: Natural) Source #
d
is the degree of polynomials in the protocol
KZG (ScalarField c1) |
Instances
newtype WitnessKZG c1 c2 d Source #
WitnessKZG | |
|
Instances
(EllipticCurve c1, f ~ ScalarField c1, KnownNat d, Ring f, Arbitrary f, Ord f) => Arbitrary (WitnessKZG c1 c2 d) Source # | |
Defined in ZkFold.Base.Protocol.KZG arbitrary :: Gen (WitnessKZG c1 c2 d) # shrink :: WitnessKZG c1 c2 d -> [WitnessKZG c1 c2 d] # | |
Show (ScalarField c1) => Show (WitnessKZG c1 c2 d) Source # | |
Defined in ZkFold.Base.Protocol.KZG showsPrec :: Int -> WitnessKZG c1 c2 d -> ShowS # show :: WitnessKZG c1 c2 d -> String # showList :: [WitnessKZG c1 c2 d] -> ShowS # |
provePolyVecEval :: forall size f. (KnownNat size, FiniteField f, Eq f) => PolyVec f size -> f -> PolyVec f size Source #