Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
298b36e
commit 656cf97
Showing
15 changed files
with
432 additions
and
11 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
142 changes: 142 additions & 0 deletions
142
index/cardano-crypto-class/2.1.2.0/cardano-crypto-class.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
cabal-version: 2.2 | ||
name: cardano-crypto-class | ||
version: 2.1.2.0 | ||
synopsis: | ||
Type classes abstracting over cryptography primitives for Cardano | ||
|
||
description: | ||
Type classes abstracting over cryptography primitives for Cardano | ||
|
||
license: Apache-2.0 | ||
license-files: | ||
LICENSE | ||
NOTICE | ||
|
||
author: IOHK | ||
maintainer: operations@iohk.io | ||
copyright: 2019-2021 IOHK | ||
category: Currency | ||
build-type: Simple | ||
extra-source-files: README.md | ||
CHANGELOG.md | ||
|
||
flag secp256k1-support | ||
description: Enable support for functions from libsecp256k1. Requires | ||
a recent libsecp256k1 with support for Schnorr signatures. | ||
default: True | ||
manual: True | ||
|
||
common base { build-depends: base >= 4.14 && < 4.19 } | ||
|
||
common project-config | ||
default-language: Haskell2010 | ||
ghc-options: | ||
-Wall -Wcompat -Wincomplete-record-updates | ||
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints | ||
-Wunused-packages | ||
|
||
library | ||
import: base, project-config | ||
hs-source-dirs: src | ||
exposed-modules: | ||
Cardano.Crypto.DSIGN | ||
Cardano.Crypto.DSIGN.Class | ||
Cardano.Crypto.DSIGN.Ed25519 | ||
Cardano.Crypto.DSIGN.Ed448 | ||
Cardano.Crypto.DSIGN.Mock | ||
Cardano.Crypto.DSIGN.NeverUsed | ||
Cardano.Crypto.EllipticCurve.BLS12_381 | ||
Cardano.Crypto.EllipticCurve.BLS12_381.Internal | ||
Cardano.Crypto.Hash | ||
Cardano.Crypto.Hash.Blake2b | ||
Cardano.Crypto.Hash.Class | ||
Cardano.Crypto.Hash.Keccak256 | ||
Cardano.Crypto.Hash.NeverUsed | ||
Cardano.Crypto.Hash.SHA256 | ||
Cardano.Crypto.Hash.SHA3_256 | ||
Cardano.Crypto.Hash.Short | ||
Cardano.Crypto.Init | ||
Cardano.Crypto.KES | ||
Cardano.Crypto.KES.Class | ||
Cardano.Crypto.KES.CompactSingle | ||
Cardano.Crypto.KES.CompactSum | ||
Cardano.Crypto.KES.Mock | ||
Cardano.Crypto.KES.NeverUsed | ||
Cardano.Crypto.KES.Simple | ||
Cardano.Crypto.KES.Single | ||
Cardano.Crypto.KES.Sum | ||
Cardano.Crypto.Libsodium | ||
Cardano.Crypto.Libsodium.C | ||
Cardano.Crypto.Libsodium.Constants | ||
Cardano.Crypto.Libsodium.Hash | ||
Cardano.Crypto.Libsodium.Init | ||
Cardano.Crypto.Libsodium.Memory | ||
Cardano.Crypto.Libsodium.Memory.Internal | ||
Cardano.Crypto.Libsodium.MLockedBytes | ||
Cardano.Crypto.Libsodium.MLockedBytes.Internal | ||
Cardano.Crypto.Libsodium.UnsafeC | ||
Cardano.Crypto.PinnedSizedBytes | ||
Cardano.Crypto.Seed | ||
Cardano.Crypto.Util | ||
Cardano.Crypto.VRF | ||
Cardano.Crypto.VRF.Class | ||
Cardano.Crypto.VRF.Mock | ||
Cardano.Crypto.VRF.NeverUsed | ||
Cardano.Crypto.VRF.Simple | ||
Cardano.Foreign | ||
|
||
other-modules: | ||
Cardano.Crypto.PackedBytes | ||
|
||
build-depends: | ||
, aeson | ||
, base | ||
, base16-bytestring >=1 | ||
, bytestring | ||
, cardano-binary >= 1.6 | ||
, cardano-strict-containers | ||
, cryptonite | ||
, deepseq | ||
, heapwords | ||
, memory | ||
, nothunks | ||
, primitive | ||
, serialise | ||
, template-haskell | ||
, th-compat | ||
, text | ||
, transformers | ||
, vector < 0.13 | ||
|
||
if impl(ghc < 9.0.0) | ||
build-depends: | ||
integer-gmp | ||
|
||
pkgconfig-depends: libsodium, libblst | ||
c-sources: cbits/blst_util.c | ||
|
||
if flag(secp256k1-support) | ||
exposed-modules: | ||
Cardano.Crypto.DSIGN.EcdsaSecp256k1 | ||
Cardano.Crypto.DSIGN.SchnorrSecp256k1 | ||
Cardano.Crypto.SECP256K1.Constants | ||
Cardano.Crypto.SECP256K1.C | ||
pkgconfig-depends: libsecp256k1 | ||
cpp-options: -DSECP256K1_ENABLED | ||
|
||
test-suite test-memory-example | ||
import: base, project-config | ||
-- Temporarily removing this as it is breaking the CI, and | ||
-- we don't see the benefit. Will circle back to this to decide | ||
-- whether to modify or completely remove. | ||
buildable: False | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: memory-example | ||
main-is: Main.hs | ||
build-depends: | ||
, base | ||
, bytestring | ||
, cardano-crypto-class | ||
|
||
if (os(linux) || os(osx)) | ||
build-depends: unix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"signatures":[{"keyid":"25adef66151837b79ce479a6d4b4d3e7ab01f4be6ac0d017aa0888ad56730012","method":"ed25519","sig":"jTE9ylCO2hD3TXAhpZwjkQ4ovikWRA8QkmTieB0XtEwxhMnN0cnAZQLSBxoCmU/MWnlvLAoTWHFAEIu8Fwt5Bw=="},{"keyid":"41ac876be19073390388a8969decce50f78306416c0d9c70d7add734152bb5fd","method":"ed25519","sig":"kd8XwirBb0EYrA23WJ1fS9xiuGIpdLMWQ6fgj50kwHINDhv7Ybz2a6aPfhuteotpV9490KbuarbmrRT2pTy3Ag=="},{"keyid":"4a6910fcd881522c6b237e408846408832a8d838d15a3821c3c57824130dd7aa","method":"ed25519","sig":"0AArWeHo9qqfhH75k+Wtl5CMUtcY2imiI38aBYqNjj0Pqlr8nPNPO+mrMyPlLaTcwRVc6Ec4sijTO/sPoKPYBA=="},{"keyid":"9c28f8cc290e3ebcb927d3167fc685107019ee15392807c301be7b977a711922","method":"ed25519","sig":"hc0tnqpUbErGPpcgWaA6AoTGr1m7zya74IFzQQUfxA4eUE7xP6a9eTIxid51ivDnfXdmhfX65cbw2o0lw4yXDQ=="},{"keyid":"a5670f268a61dec31a0cb6e37ee7f9df59abdf457168a1caadf736803d620d85","method":"ed25519","sig":"eCXnP1zMyssnsTtaoXreRVA0ZE3MW+9phcKkPyXQMWyxLyXNCGUCz1DCX/lzTXtM/nD0t/ug+CenfegNJUf0Dg=="},{"keyid":"e2984138748ffdf2190338c806a38e8d7fe54962c7a6d7e2675be00e2795498f","method":"ed25519","sig":"P1mvBpjyAwzXUhMTt8jV0UQrIsarwxZVzHOyffvAM+6VfxOn+0cdAGM0CyXHPKR8BQkBYi5DcEQdpRBlCyHQBw=="}],"signed":{"_type":"Targets","expires":null,"targets":{"<repo>/package/cardano-crypto-class-2.1.2.0.tar.gz":{"hashes":{"sha256":"e9279b063c0dade813b729b519fa85ee261296f4a70185b8c026e144bd63d78f"},"length":62725}},"version":1}} |
115 changes: 115 additions & 0 deletions
115
index/cardano-crypto-tests/2.1.2.0/cardano-crypto-tests.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
cabal-version: 2.2 | ||
|
||
name: cardano-crypto-tests | ||
version: 2.1.2.0 | ||
synopsis: Tests for cardano-crypto-class and -praos | ||
description: Tests for cardano-crypto-class and -praos | ||
license: Apache-2.0 | ||
license-files: | ||
LICENSE | ||
NOTICE | ||
author: IOHK | ||
maintainer: operations@iohk.io | ||
copyright: 2020-2021 IOHK | ||
category: Currency | ||
build-type: Simple | ||
extra-source-files: README.md | ||
CHANGELOG.md | ||
data-files: bls12-381-test-vectors/test_vectors/bls_sig_aug_test_vectors | ||
bls12-381-test-vectors/test_vectors/ec_operations_test_vectors | ||
bls12-381-test-vectors/test_vectors/h2c_large_dst | ||
bls12-381-test-vectors/test_vectors/pairing_test_vectors | ||
bls12-381-test-vectors/test_vectors/serde_test_vectors | ||
|
||
flag secp256k1-support | ||
description: Enable support for functions from libsecp256k1. Requires | ||
a recent libsecp256k1 with support for Schnorr signatures. | ||
default: True | ||
manual: True | ||
|
||
common base { build-depends: base >= 4.14 && < 4.19 } | ||
|
||
common project-config | ||
default-language: Haskell2010 | ||
|
||
ghc-options: -Wall | ||
-Wcompat | ||
-Wincomplete-record-updates | ||
-Wincomplete-uni-patterns | ||
-Wpartial-fields | ||
-Wredundant-constraints | ||
-Wunused-packages | ||
|
||
library | ||
import: base, project-config | ||
hs-source-dirs: src | ||
|
||
exposed-modules: Test.Crypto.DSIGN | ||
Test.Crypto.EllipticCurve | ||
Test.Crypto.Hash | ||
Test.Crypto.KES | ||
Test.Crypto.Util | ||
Test.Crypto.VRF | ||
Test.Crypto.Regressions | ||
Test.Crypto.Instances | ||
Bench.Crypto.DSIGN | ||
Bench.Crypto.VRF | ||
Bench.Crypto.KES | ||
Bench.Crypto.HASH | ||
Bench.Crypto.BenchData | ||
Test.Crypto.Vector.Secp256k1DSIGN | ||
Test.Crypto.Vector.Vectors | ||
Test.Crypto.Vector.StringConstants | ||
Test.Crypto.Vector.SerializationUtils | ||
Paths_cardano_crypto_tests | ||
|
||
build-depends: base | ||
, bytestring | ||
, cardano-binary | ||
, cardano-crypto-class >= 2.1.2 && < 2.2 | ||
, cardano-crypto-praos | ||
, cborg | ||
, cryptonite | ||
, deepseq | ||
, formatting | ||
, nothunks | ||
, pretty-show | ||
, QuickCheck | ||
, quickcheck-instances | ||
, tasty | ||
, tasty-hunit | ||
, tasty-quickcheck | ||
, tasty-hunit | ||
, criterion | ||
, base16-bytestring | ||
|
||
if flag(secp256k1-support) | ||
cpp-options: -DSECP256K1_ENABLED | ||
|
||
test-suite test-crypto | ||
import: base, project-config | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Main.hs | ||
build-depends: base | ||
, cardano-crypto-class | ||
, cardano-crypto-tests | ||
, tasty | ||
, tasty-quickcheck | ||
|
||
if flag(secp256k1-support) | ||
cpp-options: -DSECP256K1_ENABLED | ||
|
||
ghc-options: -threaded -rtsopts -with-rtsopts=-N | ||
|
||
benchmark bench-crypto | ||
import: base, project-config | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: bench | ||
main-is: Main.hs | ||
build-depends: base | ||
, cardano-crypto-class | ||
, cardano-crypto-tests | ||
, criterion | ||
|
||
ghc-options: -threaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"signatures":[{"keyid":"25adef66151837b79ce479a6d4b4d3e7ab01f4be6ac0d017aa0888ad56730012","method":"ed25519","sig":"MEwZ+N6917ukwXKMQw0GfbwbDb3GIS50mbAI0YtYt5sKYFJjEwFHWjT8UU8YwIkM2+5OL2FL+wb+RX5DsKRVAg=="},{"keyid":"41ac876be19073390388a8969decce50f78306416c0d9c70d7add734152bb5fd","method":"ed25519","sig":"1Cbb1lSFqTEBdF2koC4i+bimoOnWU3psKX2teYsQLUiKM+enEpP/DH/oERe3Y+WmKvpa+l1R3r41gI9HArjZDg=="},{"keyid":"4a6910fcd881522c6b237e408846408832a8d838d15a3821c3c57824130dd7aa","method":"ed25519","sig":"yG0tL6VV6Hv5rhGjH8DzpmbwkypmgM+fyLu1RcnQqCGEq4kt4mFa+sTSPHpLKPRrOMxVfz2UaEj571qsyECDDA=="},{"keyid":"9c28f8cc290e3ebcb927d3167fc685107019ee15392807c301be7b977a711922","method":"ed25519","sig":"93Up+zIAX1Sx/qDUDNGxC+wTBLQoxZiMKuFT01h/iuNdp44yoOwref006LDaPPCYl88jJjINBtePQROFeKHGBQ=="},{"keyid":"a5670f268a61dec31a0cb6e37ee7f9df59abdf457168a1caadf736803d620d85","method":"ed25519","sig":"Jf8DjteGtlWV8AXOSTyzDIhX/Y+WcqWwaXXP824mZ7DySDBrnKIw2bMatjdoXiq3L6iZ+q3FabsXKArt76EpCg=="},{"keyid":"e2984138748ffdf2190338c806a38e8d7fe54962c7a6d7e2675be00e2795498f","method":"ed25519","sig":"6wTwSqJlkOmf6HE6aVfkFAC5Ryea+XRLSQGFtZNhAgTJvK/b6Zp5kw+7KRPNzM+GTfyM2dGoR93SO9ie7ZLbDw=="}],"signed":{"_type":"Targets","expires":null,"targets":{"<repo>/package/cardano-crypto-tests-2.1.2.0.tar.gz":{"hashes":{"sha256":"6a136a4d468ca481dec9ce085194e34efb6e6cc8c24f8a9708dfd9983a3bdf3b"},"length":32583}},"version":1}} |
Binary file not shown.
Oops, something went wrong.