-
Notifications
You must be signed in to change notification settings - Fork 0
/
groth.cabal
186 lines (164 loc) · 4.38 KB
/
groth.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
cabal-version: 3.0
name: groth
version: 0.1.0.0
synopsis: Exploring CIP 68
stability: experimental
-- A longer description of the package.
-- description:
-- A URL where users can report bugs.
-- bug-reports:
license: Apache-2.0
license-files: LICENSE
author: Antonio Hernández-Garduño, Agustín Salinas Hernandez, Juan Salvador Magán Valero
maintainer: [email protected]
-- A copyright notice.
copyright: Reitcircles
category: Blockchain
-- extra-source-files: CHANGELOG.md
flag defer-plugin-errors
description:
Defer errors from the plugin, useful for things like Haddock that can't handle it.
default: True
manual: True
common lang
default-language: Haskell2010
ghc-options:
-Wnoncanonical-monad-instances
-Wincomplete-uni-patterns -Wincomplete-record-updates
-Wredundant-constraints -Widentities -rtsopts
-- See Plutus Tx readme
-fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas
-fno-specialise
if flag(defer-plugin-errors)
ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors
-- executable write-preminting-policy
-- main-is: Main.hs
-- hs-source-dirs: app
-- default-language: Haskell2010
-- build-depends:
-- base >= 4.9 && < 5,
-- aeson,
-- bytestring,
-- plutus-ledger-api,
-- plutus-ledger,
-- groth
library
import: lang
exposed-modules:
BLS6_6.Params,
BLS6_6.ZKPVerification,
BLS6_6.Test,
BLS6_6_V1.Params,
BLS6_6_V1.ZKPVerification,
BLS6_6_V1.Test,
BN128.Params,
BN128.ZKPVerification,
BN128.Test,
BN128.ParseDatum,
Deploy,
Auxiliary,
PlutusUtils
-- Algebra
,Algebra.V1.Integers
,Algebra.V1.Polynomials
,Algebra.V1.Types
,Algebra.V1.Test
,Algebra.V2.Integers
,Algebra.V2.Polynomials
,Algebra.V2.Types
,Algebra.V2.Test
,Algebra.V3.Integers
,Algebra.V3.Polynomials
,Algebra.V3.Types
,Algebra.V3.Test
,BLS12_381_V1.Pairing_bls12381
,BLS12_381_V2.Pairing_bls12381
build-depends:
base >= 4.9 && < 5,
aeson -any,
bytestring -any,
containers -any,
freer-extras -any,
template-haskell -any,
plutus-ledger -any,
plutus-ledger-api -any,
--plutus-ledger-constraints -any,
plutus-tx -any,
plutus-tx-plugin -any,
plutus-script-utils -any,
plutus-core -any,
text -any,
lens -any,
cardano-api,
cardano-binary,
cardano-prelude,
--additionals:
serialise -any,
--base16-bytestring,
--data-default,
--openapi3,
hex-text,
utilities
hs-source-dirs:
src,
test-suite groth-validator-test
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
other-modules:
Spec.BLS6_6.ZKPValidator
Spec.BLS6_6_V1.ZKPValidator
build-depends:
base,
groth,
text,
data-default,
containers,
flat,
bytestring,
cardano-ledger-babbage,
cardano-ledger-alonzo,
cardano-ledger-core,
cardano-api,
cardano-prelude,
plutus-contract,
cardano-node-emulator,
freer-extras,
aeson,
plutus-tx,
plutus-core,
plutus-ledger-api,
plutus-script-utils,
plutus-ledger,
plutus-tx-constraints
executable groth-validator-cost-exe
import: lang
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: exe
other-modules:
build-depends:
base,
groth,
text,
data-default,
containers,
flat,
bytestring,
template-haskell -any,
cardano-ledger-babbage,
cardano-ledger-alonzo,
cardano-ledger-core,
cardano-api,
cardano-prelude,
plutus-contract,
cardano-node-emulator,
freer-extras,
aeson,
plutus-tx,
plutus-core,
plutus-ledger-api,
plutus-script-utils,
plutus-ledger,
plutus-tx-constraints