-
Notifications
You must be signed in to change notification settings - Fork 44
/
Simplicity.cabal
346 lines (327 loc) · 17.1 KB
/
Simplicity.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
cabal-version: 2.2
name: Simplicity
version: 0.0.0
-- synopsis:
-- description:
license: MIT
license-file: LICENSE
author: Russell O'Connor
maintainer: [email protected]
copyright: (c) 2018 Blockstream
category: Language
build-type: Simple
extra-source-files: README.md
tested-with: GHC ==8.6.4
library Simplicity-Core
C-sources: C/sha256.c, C/frame.c, C/jets.c, C/jets-secp256k1.c
Haskell/cbits/frame.c, Haskell/cbits/coreJets.c
Include-dirs: C
Includes: sha256.h, frame.h, jets.h
exposed-modules: Simplicity.Ty, Simplicity.Ty.Bit, Simplicity.Ty.Word, Simplicity.Ty.LibSecp256k1,
Simplicity.Term.Core,
Simplicity.CoreJets,
Simplicity.Functor, Simplicity.Tensor,
Simplicity.FFI.Frame, Simplicity.FFI.Jets,
Simplicity.BitMachine, Simplicity.BitMachine.Authentic, Simplicity.BitMachine.Ty,
Simplicity.BitMachine.Translate, Simplicity.BitMachine.Translate.TCO,
Simplicity.BitMachine.StaticAnalysis, Simplicity.BitMachine.StaticAnalysis.TCO,
Simplicity.BitMachine.StaticAnalysis.Cost,
Simplicity.Programs.Bit, Simplicity.Programs.Generic, Simplicity.Programs.Loop,
Simplicity.Programs.Word, Simplicity.Programs.Arith,
Simplicity.Programs.Sha256, Simplicity.Programs.Sha256.Lib,
Simplicity.Programs.LibSecp256k1, Simplicity.Programs.LibSecp256k1.Lib,
Simplicity.Programs.CheckSig, Simplicity.Programs.CheckSig.Lib,
Simplicity.Programs.Elements, Simplicity.Programs.Elements.Lib,
Simplicity.Programs.TimeLock,
Simplicity.Digest, Simplicity.Digest.Pure.SHA,
Simplicity.Tags,
Simplicity.Tree,
Simplicity.MerkleRoot, Simplicity.MerkleRoot.Impl,
Simplicity.Delegator, Simplicity.Delegator.Impl,
Simplicity.Serialization,
Simplicity.Word,
Simplicity.LibSecp256k1.Schnorr,
Simplicity.LibSecp256k1.Spec,
Simplicity.Bitcoin,
Simplicity.Benchmarks,
Simplicity.Weight
other-extensions: BangPatterns,
FlexibleContexts,
GADTs, StandaloneDeriving, TypeFamilies
NoMonomorphismRestriction,
UndecidableInstances, QuantifiedConstraints, RankNTypes, ExistentialQuantification, TypeOperators, TypeFamilies, DeriveTraversable,
ScopedTypeVariables,
RecordWildCards,
ForeignFunctionInterface
hs-source-dirs: Haskell/Core
default-language: Haskell2010
ghc-options: -O2
build-depends: base >=4.9 && <4.20,
binary >=0.7 && <0.9,
bytestring >=0.10 && <0.13,
containers >=0.5.10 && <0.7,
cereal >=0.5 && <0.6,
lens-family >=2.0 && <2.2,
mtl >=2.2 && <2.4,
MemoTrie >=0.6 && <0.7,
split >=0.2.3 && <0.3,
tardis >=0.4.1 && <0.6,
transformers >=0.5 && <0.7,
unification-fd >=0.10 && <0.12,
vector >=0.12 && <0.14
library Simplicity-Bitcoin
exposed-modules: Simplicity.Bitcoin.Primitive, Simplicity.Bitcoin.DataTypes
other-extensions: GADTs, ScopedTypeVariables
hs-source-dirs: Haskell/Bitcoin
default-language: Haskell2010
ghc-options: -O2
build-depends: Simplicity-Core,
base >=4.9 && <4.20,
bytestring >=0.10 && <0.13,
cereal >=0.5 && <0.6,
vector >=0.12 && <0.14
library Simplicity-Elements
exposed-modules: Simplicity.Elements.Primitive, Simplicity.Elements.DataTypes
other-extensions: GADTs, ScopedTypeVariables
hs-source-dirs: Haskell/Elements
default-language: Haskell2010
ghc-options: -O2
build-depends: Simplicity-Core,
base >=4.9 && <4.20,
bytestring >=0.10 && <0.13,
cereal >=0.5 && <0.6,
containers >=0.5.10 && <0.7,
lens-family >=2.0 && <2.2,
vector >=0.12 && <0.14
library Simplicity-Indef
exposed-modules: Simplicity.Term,
Simplicity.Semantics,
Simplicity.Dag, Simplicity.Inference
Simplicity.JetType,
Simplicity.Serialization.BitString, Simplicity.Serialization.ByteString,
Simplicity.StaticAnalysis.Cost
signatures: Simplicity.Primitive
other-extensions: EmptyCase, EmptyDataDecls, EmptyDataDeriving,
ScopedTypeVariables,
DeriveTraversable, FlexibleInstances, GADTs, TypeFamilies, MultiParamTypeClasses, RankNTypes,
UndecidableInstances
hs-source-dirs: Haskell/Indef
default-language: Haskell2010
ghc-options: -O2
build-depends: Simplicity-Core,
base >=4.9 && <4.20,
bytestring >=0.10 && <0.13,
cereal >=0.5 && <0.6,
containers >=0.5.10 && <0.7,
lens-family >=2.0 && <2.2,
mtl >=2.2 && <2.4,
transformers >=0.5 && <0.7,
unification-fd >=0.10 && <0.12,
vector >=0.12 && <0.14
library
C-sources: C/rsort.c C/primitive/elements/elementsJets.c C/primitive/elements/ops.c C/primitive/elements/env.c
Haskell/cbits/elements/elementsJets.c Haskell/cbits/elements/env.c
Include-dirs: C C/include
Includes: primitive/elements/elementsJets.h primitive/elements/primitive.h simplicity/elements/env.h
exposed-modules: Simplicity.Bitcoin.Programs.Transaction, Simplicity.Bitcoin.Programs.Transaction.Lib,
Simplicity.Bitcoin.Programs.TimeLock, Simplicity.Elements.Programs.TimeLock,
Simplicity.Elements.Programs.Issuance, Simplicity.Elements.Programs.Issuance.Lib,
Simplicity.Elements.Programs.SigHash, Simplicity.Elements.Programs.SigHash.Lib,
Simplicity.Elements.Programs.Transaction, Simplicity.Elements.Programs.Transaction.Lib,
Simplicity.Bitcoin.Jets, Simplicity.Elements.Jets,
Simplicity.Elements.FFI.Env, Simplicity.Elements.FFI.Jets
reexported-modules: Simplicity.Ty, Simplicity.Ty.Bit, Simplicity.Ty.Word, Simplicity.Ty.LibSecp256k1,
Simplicity.Term.Core,
Simplicity.CoreJets,
Simplicity.Functor, Simplicity.Tensor,
Simplicity.FFI.Jets,
Simplicity.BitMachine, Simplicity.BitMachine.Authentic, Simplicity.BitMachine.Ty,
Simplicity.BitMachine.Translate, Simplicity.BitMachine.Translate.TCO,
Simplicity.BitMachine.StaticAnalysis, Simplicity.BitMachine.StaticAnalysis.TCO,
Simplicity.BitMachine.StaticAnalysis.Cost,
Simplicity.Programs.Bit, Simplicity.Programs.Generic, Simplicity.Programs.Loop,
Simplicity.Programs.Word, Simplicity.Programs.Arith,
Simplicity.Programs.Sha256, Simplicity.Programs.Sha256.Lib,
Simplicity.Programs.LibSecp256k1, Simplicity.Programs.LibSecp256k1.Lib,
Simplicity.Programs.CheckSig, Simplicity.Programs.CheckSig.Lib,
Simplicity.Programs.Elements, Simplicity.Programs.Elements.Lib,
Simplicity.Programs.TimeLock,
Simplicity.Digest,
Simplicity.Tags,
Simplicity.Tree,
Simplicity.MerkleRoot,
Simplicity.Delegator,
Simplicity.Serialization,
Simplicity.Word,
Simplicity.LibSecp256k1.Schnorr,
Simplicity.LibSecp256k1.Spec,
Simplicity.Bitcoin,
Simplicity.Bitcoin.Primitive, Simplicity.Bitcoin.DataTypes,
Simplicity.Bitcoin.Term,
Simplicity.Bitcoin.Semantics,
Simplicity.Bitcoin.Dag,
Simplicity.Bitcoin.Inference,
Simplicity.Bitcoin.JetType,
Simplicity.Bitcoin.Serialization.BitString,
Simplicity.Bitcoin.Serialization.ByteString,
Simplicity.Elements.Primitive, Simplicity.Elements.DataTypes,
Simplicity.Elements.Term,
Simplicity.Elements.Semantics,
Simplicity.Elements.Dag,
Simplicity.Elements.Inference,
Simplicity.Elements.JetType,
Simplicity.Elements.Serialization.BitString,
Simplicity.Elements.Serialization.ByteString,
Simplicity.Elements.StaticAnalysis.Cost,
Simplicity.Weight
mixins: Simplicity-Indef
(Simplicity.Term as Simplicity.Bitcoin.Term,
Simplicity.Semantics as Simplicity.Bitcoin.Semantics,
Simplicity.Dag as Simplicity.Bitcoin.Dag,
Simplicity.Inference as Simplicity.Bitcoin.Inference,
Simplicity.JetType as Simplicity.Bitcoin.JetType,
Simplicity.Serialization.BitString as Simplicity.Bitcoin.Serialization.BitString,
Simplicity.Serialization.ByteString as Simplicity.Bitcoin.Serialization.ByteString,
Simplicity.StaticAnalysis.Cost as Simplicity.Bitcoin.StaticAnalysis.Cost)
requires
(Simplicity.Primitive as Simplicity.Bitcoin.Primitive),
Simplicity-Indef
(Simplicity.Term as Simplicity.Elements.Term,
Simplicity.Semantics as Simplicity.Elements.Semantics,
Simplicity.Dag as Simplicity.Elements.Dag,
Simplicity.Inference as Simplicity.Elements.Inference,
Simplicity.JetType as Simplicity.Elements.JetType,
Simplicity.Serialization.BitString as Simplicity.Elements.Serialization.BitString,
Simplicity.Serialization.ByteString as Simplicity.Elements.Serialization.ByteString,
Simplicity.StaticAnalysis.Cost as Simplicity.Elements.StaticAnalysis.Cost)
requires
(Simplicity.Primitive as Simplicity.Elements.Primitive)
other-extensions: ConstraintKinds, GADTs, StandaloneDeriving, TypeFamilies
hs-source-dirs: Haskell
default-language: Haskell2010
ghc-options: -O2
build-depends: Simplicity-Core, Simplicity-Bitcoin, Simplicity-Elements, Simplicity-Indef,
base >=4.9 && <4.20,
bytestring >=0.10 && <0.13,
cereal >=0.5 && <0.6,
containers >=0.5.10 && <0.7,
lens-family >=2.0 && <2.2,
vector >=0.12 && <0.14
Test-Suite testsuite
Type: exitcode-stdio-1.0
main-is: Tests.hs
other-extensions: RankNTypes,
GADTs,
ScopedTypeVariables
hs-source-dirs: Haskell/Tests
default-language: Haskell2010
ghc-options: -threaded -O0 -with-rtsopts=-c
other-modules: Simplicity.Programs.Example,
Simplicity.Bip0340,
Simplicity.Arbitrary, Simplicity.Ty.Arbitrary, Simplicity.Elements.Arbitrary,
Simplicity.BitMachine.StaticAnalysis.Tests, Simplicity.BitMachine.Tests,
Simplicity.Bitcoin.Serialization.Tests,
Simplicity.FFI.Bitstream, Simplicity.FFI.Dag,
Simplicity.Elements.FFI.Primitive,
Simplicity.Elements.TestEval, Simplicity.Elements.Tests, Simplicity.Elements.FFI.Tests,
Simplicity.Elements.Serialization.Tests,
Simplicity.FFI.Tests,
Simplicity.Programs.Tests,
Simplicity.Serialization.Tests,
Simplicity.TestCoreEval,
Simplicity.Ty.Tests
C-sources: C/rsort.c, C/dag.c, C/primitive/elements/primitive.c, C/bitstream.c
Haskell/cbits/bitstream.c, Haskell/cbits/dag.c
build-depends: Simplicity,
base >=4.9 && <4.20,
bytestring >=0.10 && <0.13,
cereal >=0.5 && <0.6,
containers >=0.5.10 && <0.7,
lens-family >=2.0 && <2.2,
QuickCheck >=2.10 && <2.15,
mtl >=2.2 && <2.4,
tasty >=0.11 && <1.5,
tasty-hunit >=0.9 && <0.11,
tasty-quickcheck >=0.8 && <0.11,
transformers >=0.5 && <0.7,
vector >=0.12 && <0.14
executable GenPrecomputed
main-is: GenPrecomputed.hs
ghc-options: -main-is GenPrecomputed
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
hs-source-dirs: Haskell-Generate
default-language: Haskell2010
build-depends: Simplicity,
base >=4.9 && <4.20,
prettyprinter >=1.7 && <1.8,
split >=0.2.3 && <0.3,
executable GenPrimitive
main-is: GenPrimitive.hs
ghc-options: -main-is GenPrimitives
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
hs-source-dirs: Haskell-Generate
default-language: Haskell2010
other-modules: NameWrangler
build-depends: Simplicity,
base >=4.9 && <4.20,
containers >=0.5.10 && <0.7,
mtl >=2.2 && <2.4,
split >=0.2.3 && <0.3,
unification-fd >=0.10 && <0.12,
executable GenTests
main-is: GenTests.hs
ghc-options: -main-is GenTests
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
hs-source-dirs: Haskell-Generate
default-language: Haskell2010
build-depends: Simplicity,
base >=4.9 && <4.20,
bytestring >=0.10 && <0.13,
cereal >=0.5 && <0.6,
lens-family >=2.0 && <2.2,
split >=0.2.3 && <0.3,
vector >=0.12 && <0.14,
executable GenRustJets
main-is: GenRustJets.hs
ghc-options: -main-is GenRustJets
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
hs-source-dirs: Haskell-Generate
default-language: Haskell2010
other-modules: NameWrangler
other-extensions: OverloadedStrings
build-depends: Simplicity,
base >=4.9 && <4.20,
containers >=0.5.10 && <0.7,
prettyprinter >=1.7 && <1.8,
split >=0.2.3 && <0.3,
transformers >=0.5 && <0.7,
unification-fd >=0.10 && <0.12,
executable TestnetTransaction
main-is: TestnetTransaction.hs
ghc-options: -main-is TestnetTransaction
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
hs-source-dirs: Haskell-Examples
default-language: Haskell2010
build-depends: Simplicity,
array >=0.5 && <0.6,
base >=4.9 && <4.20,
bytestring >=0.10 && <0.13,
cereal >=0.5 && <0.6,
entropy >=0.4 && <0.5,
lens-family >=2.0 && <2.2,
vector >=0.12 && <0.14,