Skip to content

Commit cab1478

Browse files
authored
Release cardano-crypto-class and cardano-binary (#1146)
* Update iohk-nix, hackage-nix and iohk-nix * Added cardano-binary-1.7.2.0 From https://github.com/intersectmbo/cardano-base at 82e09945726a7650540e0656f01331d09018ac97 Added cardano-crypto-class-2.2.3.1 From https://github.com/intersectmbo/cardano-base at 82e09945726a7650540e0656f01331d09018ac97 * Add revisions with upper bound on `mempack <0.2` * Fixup up crypto nix overlay
1 parent 9f28d24 commit cab1478

File tree

16 files changed

+1416
-47
lines changed

16 files changed

+1416
-47
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
timestamp = 2025-10-01T14:54:25Z
2+
github = { repo = "intersectmbo/cardano-base", rev = "82e09945726a7650540e0656f01331d09018ac97" }
3+
subdir = 'cardano-binary'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
timestamp = 2024-12-11T19:48:20Z
22
github = { repo = "IntersectMBO/cardano-base", rev = "ded795b240bc86b3e71766e4e896bb4e587af679" }
33
subdir = 'cardano-crypto-class'
4+
5+
[[revisions]]
6+
number = 1
7+
timestamp = 2025-10-01T14:54:46Z
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
cabal-version: 2.2
2+
name: cardano-crypto-class
3+
version: 2.2.0.0
4+
synopsis:
5+
Type classes abstracting over cryptography primitives for Cardano
6+
7+
description:
8+
Type classes abstracting over cryptography primitives for Cardano
9+
10+
license: Apache-2.0
11+
license-files:
12+
LICENSE
13+
NOTICE
14+
15+
author: IOHK
16+
maintainer: [email protected]
17+
copyright: 2019-2021 IOHK
18+
category: Currency
19+
build-type: Simple
20+
extra-source-files:
21+
CHANGELOG.md
22+
README.md
23+
24+
flag secp256k1-support
25+
description:
26+
Enable support for functions from libsecp256k1. Requires
27+
a recent libsecp256k1 with support for Schnorr signatures.
28+
29+
default: True
30+
manual: True
31+
32+
common base
33+
build-depends: base >=4.14 && <5
34+
35+
common project-config
36+
default-language: Haskell2010
37+
ghc-options:
38+
-Wall
39+
-Wcompat
40+
-Wincomplete-record-updates
41+
-Wincomplete-uni-patterns
42+
-Wpartial-fields
43+
-Wredundant-constraints
44+
-Wunused-packages
45+
46+
library
47+
import: base, project-config
48+
hs-source-dirs: src
49+
exposed-modules:
50+
Cardano.Crypto.DSIGN
51+
Cardano.Crypto.DSIGN.Class
52+
Cardano.Crypto.DSIGN.Ed25519
53+
Cardano.Crypto.DSIGN.Ed448
54+
Cardano.Crypto.DSIGN.Mock
55+
Cardano.Crypto.DSIGN.NeverUsed
56+
Cardano.Crypto.DirectSerialise
57+
Cardano.Crypto.EllipticCurve.BLS12_381
58+
Cardano.Crypto.EllipticCurve.BLS12_381.Internal
59+
Cardano.Crypto.Hash
60+
Cardano.Crypto.Hash.Blake2b
61+
Cardano.Crypto.Hash.Class
62+
Cardano.Crypto.Hash.Keccak256
63+
Cardano.Crypto.Hash.NeverUsed
64+
Cardano.Crypto.Hash.RIPEMD160
65+
Cardano.Crypto.Hash.SHA256
66+
Cardano.Crypto.Hash.SHA3_256
67+
Cardano.Crypto.Hash.Short
68+
Cardano.Crypto.Init
69+
Cardano.Crypto.KES
70+
Cardano.Crypto.KES.Class
71+
Cardano.Crypto.KES.CompactSingle
72+
Cardano.Crypto.KES.CompactSum
73+
Cardano.Crypto.KES.Mock
74+
Cardano.Crypto.KES.NeverUsed
75+
Cardano.Crypto.KES.Simple
76+
Cardano.Crypto.KES.Single
77+
Cardano.Crypto.KES.Sum
78+
Cardano.Crypto.Libsodium
79+
Cardano.Crypto.Libsodium.C
80+
Cardano.Crypto.Libsodium.Constants
81+
Cardano.Crypto.Libsodium.Hash
82+
Cardano.Crypto.Libsodium.Hash.Class
83+
Cardano.Crypto.Libsodium.Init
84+
Cardano.Crypto.Libsodium.MLockedBytes
85+
Cardano.Crypto.Libsodium.MLockedBytes.Internal
86+
Cardano.Crypto.Libsodium.MLockedSeed
87+
Cardano.Crypto.Libsodium.Memory
88+
Cardano.Crypto.Libsodium.Memory.Internal
89+
Cardano.Crypto.Libsodium.UnsafeC
90+
Cardano.Crypto.PinnedSizedBytes
91+
Cardano.Crypto.Seed
92+
Cardano.Crypto.Util
93+
Cardano.Crypto.VRF
94+
Cardano.Crypto.VRF.Class
95+
Cardano.Crypto.VRF.Mock
96+
Cardano.Crypto.VRF.NeverUsed
97+
Cardano.Crypto.VRF.Simple
98+
Cardano.Foreign
99+
100+
other-modules:
101+
Cardano.Crypto.PackedBytes
102+
103+
build-depends:
104+
aeson,
105+
base,
106+
base16-bytestring >=1,
107+
bytestring,
108+
cardano-binary >=1.6,
109+
cardano-strict-containers,
110+
crypton,
111+
deepseq,
112+
heapwords,
113+
io-classes >=1.4.1,
114+
memory,
115+
memory-pool,
116+
mempack ^>=0.1,
117+
mtl,
118+
nothunks,
119+
primitive >=0.8,
120+
serialise,
121+
template-haskell,
122+
text,
123+
th-compat,
124+
transformers,
125+
vector,
126+
127+
if impl(ghc <9.0.0)
128+
build-depends:
129+
integer-gmp
130+
pkgconfig-depends:
131+
libblst,
132+
libsodium,
133+
134+
c-sources: cbits/blst_util.c
135+
136+
if flag(secp256k1-support)
137+
exposed-modules:
138+
Cardano.Crypto.DSIGN.EcdsaSecp256k1
139+
Cardano.Crypto.DSIGN.SchnorrSecp256k1
140+
Cardano.Crypto.SECP256K1.C
141+
Cardano.Crypto.SECP256K1.Constants
142+
143+
pkgconfig-depends: libsecp256k1
144+
cpp-options: -DSECP256K1_ENABLED
145+
146+
test-suite test-memory-example
147+
import: base, project-config
148+
-- Temporarily removing this as it is breaking the CI, and
149+
-- we don't see the benefit. Will circle back to this to decide
150+
-- whether to modify or completely remove.
151+
buildable: False
152+
type: exitcode-stdio-1.0
153+
hs-source-dirs: memory-example
154+
main-is: Main.hs
155+
build-depends:
156+
base,
157+
bytestring,
158+
cardano-crypto-class,
159+
160+
if (os(linux) || os(osx))
161+
build-depends: unix
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
timestamp = 2025-03-18T17:41:11Z
22
github = { repo = "intersectmbo/cardano-base", rev = "af32361b8e3cfd6988de3b5014cf129168395768" }
33
subdir = 'cardano-crypto-class'
4+
5+
[[revisions]]
6+
number = 1
7+
timestamp = 2025-10-01T14:54:46Z
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
cabal-version: 2.2
2+
name: cardano-crypto-class
3+
version: 2.2.1.0
4+
synopsis:
5+
Type classes abstracting over cryptography primitives for Cardano
6+
7+
description:
8+
Type classes abstracting over cryptography primitives for Cardano
9+
10+
license: Apache-2.0
11+
license-files:
12+
LICENSE
13+
NOTICE
14+
15+
author: IOHK
16+
maintainer: [email protected]
17+
copyright: 2019-2021 IOHK
18+
category: Currency
19+
build-type: Simple
20+
extra-source-files:
21+
CHANGELOG.md
22+
README.md
23+
24+
flag secp256k1-support
25+
description:
26+
Enable support for functions from libsecp256k1. Requires
27+
a recent libsecp256k1 with support for Schnorr signatures.
28+
29+
default: True
30+
manual: True
31+
32+
common base
33+
build-depends: base >=4.14 && <5
34+
35+
common project-config
36+
default-language: Haskell2010
37+
ghc-options:
38+
-Wall
39+
-Wcompat
40+
-Wincomplete-record-updates
41+
-Wincomplete-uni-patterns
42+
-Wpartial-fields
43+
-Wredundant-constraints
44+
-Wunused-packages
45+
46+
library
47+
import: base, project-config
48+
hs-source-dirs: src
49+
exposed-modules:
50+
Cardano.Crypto.DSIGN
51+
Cardano.Crypto.DSIGN.Class
52+
Cardano.Crypto.DSIGN.Ed25519
53+
Cardano.Crypto.DSIGN.Ed448
54+
Cardano.Crypto.DSIGN.Mock
55+
Cardano.Crypto.DSIGN.NeverUsed
56+
Cardano.Crypto.DirectSerialise
57+
Cardano.Crypto.EllipticCurve.BLS12_381
58+
Cardano.Crypto.EllipticCurve.BLS12_381.Internal
59+
Cardano.Crypto.Hash
60+
Cardano.Crypto.Hash.Blake2b
61+
Cardano.Crypto.Hash.Class
62+
Cardano.Crypto.Hash.Keccak256
63+
Cardano.Crypto.Hash.NeverUsed
64+
Cardano.Crypto.Hash.RIPEMD160
65+
Cardano.Crypto.Hash.SHA256
66+
Cardano.Crypto.Hash.SHA3_256
67+
Cardano.Crypto.Hash.Short
68+
Cardano.Crypto.Init
69+
Cardano.Crypto.KES
70+
Cardano.Crypto.KES.Class
71+
Cardano.Crypto.KES.CompactSingle
72+
Cardano.Crypto.KES.CompactSum
73+
Cardano.Crypto.KES.Mock
74+
Cardano.Crypto.KES.NeverUsed
75+
Cardano.Crypto.KES.Simple
76+
Cardano.Crypto.KES.Single
77+
Cardano.Crypto.KES.Sum
78+
Cardano.Crypto.Libsodium
79+
Cardano.Crypto.Libsodium.C
80+
Cardano.Crypto.Libsodium.Constants
81+
Cardano.Crypto.Libsodium.Hash
82+
Cardano.Crypto.Libsodium.Hash.Class
83+
Cardano.Crypto.Libsodium.Init
84+
Cardano.Crypto.Libsodium.MLockedBytes
85+
Cardano.Crypto.Libsodium.MLockedBytes.Internal
86+
Cardano.Crypto.Libsodium.MLockedSeed
87+
Cardano.Crypto.Libsodium.Memory
88+
Cardano.Crypto.Libsodium.Memory.Internal
89+
Cardano.Crypto.Libsodium.UnsafeC
90+
Cardano.Crypto.PinnedSizedBytes
91+
Cardano.Crypto.Seed
92+
Cardano.Crypto.Util
93+
Cardano.Crypto.VRF
94+
Cardano.Crypto.VRF.Class
95+
Cardano.Crypto.VRF.Mock
96+
Cardano.Crypto.VRF.NeverUsed
97+
Cardano.Crypto.VRF.Simple
98+
Cardano.Foreign
99+
100+
other-modules:
101+
Cardano.Crypto.PackedBytes
102+
103+
build-depends:
104+
aeson,
105+
base,
106+
base16-bytestring >=1,
107+
bytestring,
108+
cardano-binary >=1.6,
109+
cardano-strict-containers,
110+
crypton,
111+
deepseq,
112+
heapwords,
113+
io-classes >=1.4.1,
114+
memory,
115+
memory-pool,
116+
mempack ^>=0.1,
117+
mtl,
118+
nothunks,
119+
primitive >=0.8,
120+
serialise,
121+
template-haskell,
122+
text,
123+
th-compat,
124+
transformers,
125+
vector,
126+
127+
if impl(ghc <9.0.0)
128+
build-depends:
129+
integer-gmp
130+
pkgconfig-depends:
131+
libblst,
132+
libsodium,
133+
134+
c-sources: cbits/blst_util.c
135+
136+
if flag(secp256k1-support)
137+
exposed-modules:
138+
Cardano.Crypto.DSIGN.EcdsaSecp256k1
139+
Cardano.Crypto.DSIGN.SchnorrSecp256k1
140+
Cardano.Crypto.SECP256K1.C
141+
Cardano.Crypto.SECP256K1.Constants
142+
143+
pkgconfig-depends: libsecp256k1
144+
cpp-options: -DSECP256K1_ENABLED
145+
146+
test-suite test-memory-example
147+
import: base, project-config
148+
-- Temporarily removing this as it is breaking the CI, and
149+
-- we don't see the benefit. Will circle back to this to decide
150+
-- whether to modify or completely remove.
151+
buildable: False
152+
type: exitcode-stdio-1.0
153+
hs-source-dirs: memory-example
154+
main-is: Main.hs
155+
build-depends:
156+
base,
157+
bytestring,
158+
cardano-crypto-class,
159+
160+
if (os(linux) || os(osx))
161+
build-depends: unix
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
timestamp = 2025-04-11T16:42:25Z
22
github = { repo = "intersectmbo/cardano-base", rev = "9b4b06e43e45884f6e1d9dca5436e5367f5ed439" }
33
subdir = 'cardano-crypto-class'
4+
5+
[[revisions]]
6+
number = 1
7+
timestamp = 2025-10-01T14:54:46Z

0 commit comments

Comments
 (0)