-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethereum.cabal
207 lines (191 loc) · 5.04 KB
/
ethereum.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
cabal-version: 3.0
name: ethereum
version: 0.1.0.2
synopsis: Ethereum related Datatypes and Algorithms
homepage: https://github.com/larskuhtz/ethereum
bug-reports: https://github.com/larskuhtz/ethereum/issues
license: BSD-3-Clause
license-file: LICENSE
author: Lars Kuhtz
maintainer: [email protected]
copyright: Copyright (c) 2020-2024 Kadena LLC.
category: Data
tested-with:
, GHC==9.10
, GHC==9.8
, GHC==9.6
-- not supported because of https://gitlab.haskell.org/ghc/ghc/-/issues/23972
extra-doc-files:
, README.md
, CHANGELOG.md
source-repository head
type: git
location: https://github.com/larskuhtz/ethereum.git
flag openssl-use-pkg-config
description: Use pkg-config to find OpenSSL (macOS and linux only).
default: False
manual: True
-- Ethereum is now a PoS system. The implementation of the old PoW algorithm
-- in this package is now deprecated and will be removed in the future.
--
flag ethhash
description: Include implementation Ethereum's old PoW hashing algorithm
default: False
manual: True
common openssl-common
c-sources:
, cbits/prime.c
if flag(openssl-use-pkg-config)
pkgconfig-depends: libcrypto
else
extra-Libraries: crypto
-- -------------------------------------------------------------------------- --
-- Internal Library secp256k1
library secp256k1
hs-source-dirs: src-secp256k1
default-language: Haskell2010
visibility: public
ghc-options:
-Wall
exposed-modules:
, Crypto.Secp256k1
, Crypto.Secp256k1.Internal
build-depends:
, base >=4.11 && <5
, bytestring >=0.11.3
, exceptions >=0.10
, text >=1.2
if impl(ghc < 9.0.0)
build-depends:
, integer-gmp >=1.0.3
test-suite secp256k1-tests
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: test-secp256k1
other-modules:
, Test.Crypto.Secp256k1.Internal
ghc-options:
-Wall
-threaded
-with-rtsopts=-N
main-is: Main.hs
build-depends:
, secp256k1
, QuickCheck >=2.14
, base >=4.11 && <5
, bytestring >=0.11.3
, entropy >=0.4
, hashes >=0.3
, quickcheck-instances >=0.3
, tasty >=1.3
, tasty-quickcheck >=0.10
benchmark secp256k1-benchmarks
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench-secp256k1
ghc-options:
-Wall
-threaded
-with-rtsopts=-N
main-is: Main.hs
build-depends:
, secp256k1
, base >=4.11 && <5
, criterion >=1.6
, deepseq >=1.4
-- -------------------------------------------------------------------------- --
-- Library
library
import: openssl-common
hs-source-dirs: src
default-language: Haskell2010
ghc-options:
-Wall
exposed-modules:
, Ethereum.Block
, Ethereum.HP
, Ethereum.HP.Internal
, Ethereum.Header
, Ethereum.Misc
, Ethereum.RLP
, Ethereum.Receipt
, Ethereum.Receipt.ReceiptProof
, Ethereum.Transaction
, Ethereum.Trie
, Ethereum.Utils
, Numeric.Checked
build-depends:
, base >=4.15 && <5
, aeson >=2.2
, base16-bytestring >=0.1
, binary >=0.8
, bytestring >=0.11.3
, exceptions >=0.10
, hashable >=1.2
, hashes >=0.3
, lens >=4.17
, primitive >=0.6
, text >=1.2
, unordered-containers >=0.2
, vector >=0.12
if flag(ethhash)
exposed-modules:
, Ethereum.Ethhash
, Ethereum.Ethhash.CacheSizes
, Ethereum.Ethhash.DataSizes
test-suite ethereum-tests
import: openssl-common
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: test
other-modules:
, Test.Ethereum.Block
, Test.Ethereum.HP
-- , Test.Ethereum.Header
, Test.Ethereum.RLP
, Test.Ethereum.Receipt
, Test.Ethereum.Trie
, Test.Orphans
, Test.Utils
ghc-options:
-Wall
-threaded
-with-rtsopts=-N
main-is: Main.hs
build-depends:
, ethereum
, QuickCheck >=2.14
, aeson >=2.2
, base >=4.15 && <5
, base16-bytestring >=0.1
, bytestring >=0.10.12
, quickcheck-instances >=0.3
, raw-strings-qq >=1.1
, tasty >=1.3
, tasty-hunit >=0.10
, tasty-quickcheck >=0.10
if flag(ethhash)
cpp-options: -DETHHASH
other-modules:
, Test.Ethereum.Ethhash
build-depends:
, deepseq >=1.4
, text >=1.2
benchmark ethhash
if flag(ethhash)
buildable: True
else
buildable: False
import: openssl-common
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench
ghc-options:
-Wall
-threaded
-with-rtsopts=-N
main-is: Main.hs
build-depends:
, ethereum
, base >=4.15 && <5
, clock >=0.8