symbolic-base-0.1.0.0: ZkFold Symbolic compiler and zero-knowledge proof protocols
Safe HaskellSafe-Inferred
LanguageHaskell2010

ZkFold.Base.Protocol.Protostar.Commit

Synopsis

Documentation

class Commit a f where Source #

Commit to the object a with commitment key ck and results of type f

Methods

commit :: a -> f Source #

Instances

Instances details
RandomOracle a x => Commit a x Source # 
Instance details

Defined in ZkFold.Base.Protocol.Protostar.Commit

Methods

commit :: a -> x Source #

class AdditiveGroup c => HomomorphicCommit a c where Source #

Homomorphic commitment scheme, i.e. (hcommit x) * (hcommit y) == hcommit (x + y)

Methods

hcommit :: a -> c Source #

Instances

Instances details
(PedersonSetup 100 c, Scale f c, AdditiveGroup c) => HomomorphicCommit [f] c Source # 
Instance details

Defined in ZkFold.Base.Protocol.Protostar.Commit

Methods

hcommit :: [f] -> c Source #

(PedersonSetup n c, Scale f c, AdditiveGroup c) => HomomorphicCommit (Vector n f) c Source # 
Instance details

Defined in ZkFold.Base.Protocol.Protostar.Commit

Methods

hcommit :: Vector n f -> c Source #

class PedersonSetup n c where Source #

Instances

Instances details
KnownNat n => PedersonSetup n (Point BLS12_381_G1) Source # 
Instance details

Defined in ZkFold.Base.Protocol.Protostar.Commit

(KnownNat n, Symbolic c, NFData (c (Vector Size))) => PedersonSetup n (Point (Ed25519 c)) Source # 
Instance details

Defined in ZkFold.Base.Protocol.Protostar.Commit