From c2201dff234c9a90e6c01f5c158017cf8dcb096d Mon Sep 17 00:00:00 2001 From: Jean-Pierre Rupp Date: Thu, 9 Aug 2018 13:10:17 +0100 Subject: [PATCH] Use Hpack (package.yaml) --- package.yaml | 140 +++++++++++++++++++++++ secp256k1.cabal | 298 +++++++++++++++++++++++++----------------------- 2 files changed, 298 insertions(+), 140 deletions(-) create mode 100644 package.yaml diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..d0fda7f --- /dev/null +++ b/package.yaml @@ -0,0 +1,140 @@ +name: secp256k1 +version: '0.5.4' +synopsis: Bindings for secp256k1 library from Bitcoin Core +description: Please see README.md +category: Crypto +author: Jean-Pierre Rupp +maintainer: xenog@protonmail.com +copyright: (c) 2017 Jean-Pierre Rupp +license: PublicDomain +license-file: UNLICENSE +github: haskoin/secp256k1-haskell.git +homepage: http://github.com/haskoin/secp256k1-haskell#readme +extra-source-files: +- secp256k1/README.md +- secp256k1/autogen.sh +- secp256k1/configure.ac +- secp256k1/Makefile.am +- secp256k1/COPYING +- secp256k1/src/num_impl.h +- secp256k1/src/bench_verify.c +- secp256k1/src/gen_context.c +- secp256k1/src/bench_recover.c +- secp256k1/src/basic-config.h +- secp256k1/src/bench_ecdh.c +- secp256k1/src/ecmult_const.h +- secp256k1/src/scalar_low.h +- secp256k1/src/tests_exhaustive.c +- secp256k1/src/ecdsa_impl.h +- secp256k1/src/ecmult_impl.h +- secp256k1/src/ecmult_gen_impl.h +- secp256k1/src/scalar_8x32.h +- secp256k1/src/scalar_8x32_impl.h +- secp256k1/src/group.h +- secp256k1/src/testrand_impl.h +- secp256k1/src/modules/ecdh/main_impl.h +- secp256k1/src/modules/ecdh/tests_impl.h +- secp256k1/src/modules/ecdh/Makefile.am.include +- secp256k1/src/modules/recovery/main_impl.h +- secp256k1/src/modules/recovery/tests_impl.h +- secp256k1/src/modules/recovery/Makefile.am.include +- secp256k1/src/ecdsa.h +- secp256k1/src/testrand.h +- secp256k1/src/bench_internal.c +- secp256k1/src/field_10x26_impl.h +- secp256k1/src/eckey.h +- secp256k1/src/field_5x52.h +- secp256k1/src/field_5x52_asm_impl.h +- secp256k1/src/asm/field_10x26_arm.s +- secp256k1/src/field_10x26.h +- secp256k1/src/util.h +- secp256k1/src/num.h +- secp256k1/src/num_gmp.h +- secp256k1/src/scalar_4x64_impl.h +- secp256k1/src/hash.h +- secp256k1/src/scalar_4x64.h +- secp256k1/src/hash_impl.h +- secp256k1/src/tests.c +- secp256k1/src/scalar_impl.h +- secp256k1/src/bench_sign.c +- secp256k1/src/field_5x52_int128_impl.h +- secp256k1/src/field_5x52_impl.h +- secp256k1/src/field.h +- secp256k1/src/secp256k1.c +- secp256k1/src/group_impl.h +- secp256k1/src/java/org_bitcoin_NativeSecp256k1.h +- secp256k1/src/java/org/bitcoin/NativeSecp256k1Test.java +- secp256k1/src/java/org/bitcoin/NativeSecp256k1.java +- secp256k1/src/java/org/bitcoin/Secp256k1Context.java +- secp256k1/src/java/org/bitcoin/NativeSecp256k1Util.java +- secp256k1/src/java/org_bitcoin_Secp256k1Context.h +- secp256k1/src/java/org_bitcoin_NativeSecp256k1.c +- secp256k1/src/java/org_bitcoin_Secp256k1Context.c +- secp256k1/src/ecmult_gen.h +- secp256k1/src/ecmult_const_impl.h +- secp256k1/src/eckey_impl.h +- secp256k1/src/field_impl.h +- secp256k1/src/bench.h +- secp256k1/src/scalar_low_impl.h +- secp256k1/src/bench_schnorr_verify.c +- secp256k1/src/scalar.h +- secp256k1/src/num_gmp_impl.h +- secp256k1/src/ecmult.h +- secp256k1/TODO +- secp256k1/include/secp256k1_recovery.h +- secp256k1/include/secp256k1.h +- secp256k1/include/secp256k1_ecdh.h +- secp256k1/contrib/lax_der_parsing.c +- secp256k1/contrib/lax_der_privatekey_parsing.c +- secp256k1/contrib/lax_der_privatekey_parsing.h +- secp256k1/contrib/lax_der_parsing.h +- secp256k1/libsecp256k1.pc.in +- secp256k1/sage/group_prover.sage +- secp256k1/sage/weierstrass_prover.sage +- secp256k1/sage/secp256k1.sage +- secp256k1/build-aux/m4/ax_jni_include_dir.m4 +- secp256k1/build-aux/m4/ax_prog_cc_for_build.m4 +- secp256k1/build-aux/m4/bitcoin_secp.m4 +- README.md +dependencies: +- base16-bytestring +- bytestring +- cereal +- entropy +- mtl +- QuickCheck +- string-conversions +library: + source-dirs: src + c-sources: + - secp256k1/src/secp256k1.c + - secp256k1/contrib/lax_der_parsing.c + - secp256k1/contrib/lax_der_privatekey_parsing.c + ghc-options: -Wall + cc-options: -DHAVE_CONFIG_H + include-dirs: + - secp256k1 + - secp256k1/contrib + - secp256k1/include + exposed-modules: + - Crypto.Secp256k1 + - Crypto.Secp256k1.Internal + dependencies: + - base >=4.8 && <5 +tests: + secp256k1-test: + main: Spec.hs + source-dirs: test + ghc-options: + - -Wall + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - base + - cryptohash + - HUnit + - secp256k1 + - test-framework + - test-framework-hunit + - test-framework-quickcheck2 diff --git a/secp256k1.cabal b/secp256k1.cabal index 2dbcd9e..917cd44 100644 --- a/secp256k1.cabal +++ b/secp256k1.cabal @@ -1,149 +1,167 @@ -name: secp256k1 -version: 0.5.3 -synopsis: Bindings for secp256k1 library from Bitcoin Core -description: Please see README.md -homepage: http://github.com/haskoin/secp256k1-haskell#readme -license: PublicDomain -license-file: UNLICENSE -author: Jean-Pierre Rupp -maintainer: xenog@protonmail.com -copyright: (c) 2017 Jean-Pierre Rupp -category: Crypto -build-type: Custom +-- This file has been generated from package.yaml by hpack version 0.20.0. +-- +-- see: https://github.com/sol/hpack +-- +-- hash: 4e87eeb79d708983b0d5be63fa08776a63a34a09a94154c1aba3d22c16dc3bbe + +name: secp256k1 +version: 0.5.3 +synopsis: Bindings for secp256k1 library from Bitcoin Core +description: Please see README.md +category: Crypto +homepage: http://github.com/haskoin/secp256k1-haskell#readme +bug-reports: https://github.com/haskoin/secp256k1-haskell.git/issues +author: Jean-Pierre Rupp +maintainer: xenog@protonmail.com +copyright: (c) 2017 Jean-Pierre Rupp +license: PublicDomain +license-file: UNLICENSE +build-type: Simple +cabal-version: >= 1.10 + extra-source-files: - secp256k1/README.md + README.md secp256k1/autogen.sh - secp256k1/configure.ac - secp256k1/Makefile.am - secp256k1/COPYING - secp256k1/src/num_impl.h - secp256k1/src/bench_verify.c - secp256k1/src/gen_context.c - secp256k1/src/bench_recover.c - secp256k1/src/basic-config.h - secp256k1/src/bench_ecdh.c - secp256k1/src/ecmult_const.h - secp256k1/src/scalar_low.h - secp256k1/src/tests_exhaustive.c - secp256k1/src/ecdsa_impl.h - secp256k1/src/ecmult_impl.h - secp256k1/src/ecmult_gen_impl.h - secp256k1/src/scalar_8x32.h - secp256k1/src/scalar_8x32_impl.h - secp256k1/src/group.h - secp256k1/src/testrand_impl.h - secp256k1/src/modules/ecdh/main_impl.h - secp256k1/src/modules/ecdh/tests_impl.h - secp256k1/src/modules/ecdh/Makefile.am.include - secp256k1/src/modules/recovery/main_impl.h - secp256k1/src/modules/recovery/tests_impl.h - secp256k1/src/modules/recovery/Makefile.am.include - secp256k1/src/ecdsa.h - secp256k1/src/testrand.h - secp256k1/src/bench_internal.c - secp256k1/src/field_10x26_impl.h - secp256k1/src/eckey.h - secp256k1/src/field_5x52.h - secp256k1/src/field_5x52_asm_impl.h - secp256k1/src/asm/field_10x26_arm.s - secp256k1/src/field_10x26.h - secp256k1/src/util.h - secp256k1/src/num.h - secp256k1/src/num_gmp.h - secp256k1/src/scalar_4x64_impl.h - secp256k1/src/hash.h - secp256k1/src/scalar_4x64.h - secp256k1/src/hash_impl.h - secp256k1/src/tests.c - secp256k1/src/scalar_impl.h - secp256k1/src/bench_sign.c - secp256k1/src/field_5x52_int128_impl.h - secp256k1/src/field_5x52_impl.h - secp256k1/src/field.h - secp256k1/src/secp256k1.c - secp256k1/src/group_impl.h - secp256k1/src/java/org_bitcoin_NativeSecp256k1.h - secp256k1/src/java/org/bitcoin/NativeSecp256k1Test.java - secp256k1/src/java/org/bitcoin/NativeSecp256k1.java - secp256k1/src/java/org/bitcoin/Secp256k1Context.java - secp256k1/src/java/org/bitcoin/NativeSecp256k1Util.java - secp256k1/src/java/org_bitcoin_Secp256k1Context.h - secp256k1/src/java/org_bitcoin_NativeSecp256k1.c - secp256k1/src/java/org_bitcoin_Secp256k1Context.c - secp256k1/src/ecmult_gen.h - secp256k1/src/ecmult_const_impl.h - secp256k1/src/eckey_impl.h - secp256k1/src/field_impl.h - secp256k1/src/bench.h - secp256k1/src/scalar_low_impl.h - secp256k1/src/bench_schnorr_verify.c - secp256k1/src/scalar.h - secp256k1/src/num_gmp_impl.h - secp256k1/src/ecmult.h - secp256k1/TODO - secp256k1/include/secp256k1_recovery.h - secp256k1/include/secp256k1.h - secp256k1/include/secp256k1_ecdh.h - secp256k1/contrib/lax_der_parsing.c - secp256k1/contrib/lax_der_privatekey_parsing.c - secp256k1/contrib/lax_der_privatekey_parsing.h - secp256k1/contrib/lax_der_parsing.h - secp256k1/libsecp256k1.pc.in - secp256k1/sage/group_prover.sage - secp256k1/sage/weierstrass_prover.sage - secp256k1/sage/secp256k1.sage secp256k1/build-aux/m4/ax_jni_include_dir.m4 secp256k1/build-aux/m4/ax_prog_cc_for_build.m4 secp256k1/build-aux/m4/bitcoin_secp.m4 - README.md -cabal-version: >=1.10 - -library - hs-source-dirs: src - exposed-modules: Crypto.Secp256k1 - , Crypto.Secp256k1.Internal - build-depends: base >= 4.8 && < 5 - , base16-bytestring - , bytestring - , cereal - , entropy - , mtl - , QuickCheck - , string-conversions - default-language: Haskell2010 - ghc-options: -Wall - cc-options: -DHAVE_CONFIG_H - c-sources: secp256k1/src/secp256k1.c, secp256k1/contrib/lax_der_parsing.c, secp256k1/contrib/lax_der_privatekey_parsing.c - include-dirs: secp256k1, secp256k1/contrib, secp256k1/include - -test-suite secp256k1-test - type: exitcode-stdio-1.0 - hs-source-dirs: test - main-is: Spec.hs - other-modules: Crypto.Secp256k1.Tests - , Crypto.Secp256k1.Internal.Tests - build-depends: base - , base16-bytestring - , bytestring - , cereal - , cryptohash - , entropy - , HUnit - , mtl - , QuickCheck - , secp256k1 - , string-conversions - , test-framework - , test-framework-hunit - , test-framework-quickcheck2 - ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N - default-language: Haskell2010 + secp256k1/configure.ac + secp256k1/contrib/lax_der_parsing.c + secp256k1/contrib/lax_der_parsing.h + secp256k1/contrib/lax_der_privatekey_parsing.c + secp256k1/contrib/lax_der_privatekey_parsing.h + secp256k1/COPYING + secp256k1/include/secp256k1.h + secp256k1/include/secp256k1_ecdh.h + secp256k1/include/secp256k1_recovery.h + secp256k1/libsecp256k1.pc.in + secp256k1/Makefile.am + secp256k1/README.md + secp256k1/sage/group_prover.sage + secp256k1/sage/secp256k1.sage + secp256k1/sage/weierstrass_prover.sage + secp256k1/src/asm/field_10x26_arm.s + secp256k1/src/basic-config.h + secp256k1/src/bench.h + secp256k1/src/bench_ecdh.c + secp256k1/src/bench_internal.c + secp256k1/src/bench_recover.c + secp256k1/src/bench_schnorr_verify.c + secp256k1/src/bench_sign.c + secp256k1/src/bench_verify.c + secp256k1/src/ecdsa.h + secp256k1/src/ecdsa_impl.h + secp256k1/src/eckey.h + secp256k1/src/eckey_impl.h + secp256k1/src/ecmult.h + secp256k1/src/ecmult_const.h + secp256k1/src/ecmult_const_impl.h + secp256k1/src/ecmult_gen.h + secp256k1/src/ecmult_gen_impl.h + secp256k1/src/ecmult_impl.h + secp256k1/src/field.h + secp256k1/src/field_10x26.h + secp256k1/src/field_10x26_impl.h + secp256k1/src/field_5x52.h + secp256k1/src/field_5x52_asm_impl.h + secp256k1/src/field_5x52_impl.h + secp256k1/src/field_5x52_int128_impl.h + secp256k1/src/field_impl.h + secp256k1/src/gen_context.c + secp256k1/src/group.h + secp256k1/src/group_impl.h + secp256k1/src/hash.h + secp256k1/src/hash_impl.h + secp256k1/src/java/org/bitcoin/NativeSecp256k1.java + secp256k1/src/java/org/bitcoin/NativeSecp256k1Test.java + secp256k1/src/java/org/bitcoin/NativeSecp256k1Util.java + secp256k1/src/java/org/bitcoin/Secp256k1Context.java + secp256k1/src/java/org_bitcoin_NativeSecp256k1.c + secp256k1/src/java/org_bitcoin_NativeSecp256k1.h + secp256k1/src/java/org_bitcoin_Secp256k1Context.c + secp256k1/src/java/org_bitcoin_Secp256k1Context.h + secp256k1/src/modules/ecdh/main_impl.h + secp256k1/src/modules/ecdh/Makefile.am.include + secp256k1/src/modules/ecdh/tests_impl.h + secp256k1/src/modules/recovery/main_impl.h + secp256k1/src/modules/recovery/Makefile.am.include + secp256k1/src/modules/recovery/tests_impl.h + secp256k1/src/num.h + secp256k1/src/num_gmp.h + secp256k1/src/num_gmp_impl.h + secp256k1/src/num_impl.h + secp256k1/src/scalar.h + secp256k1/src/scalar_4x64.h + secp256k1/src/scalar_4x64_impl.h + secp256k1/src/scalar_8x32.h + secp256k1/src/scalar_8x32_impl.h + secp256k1/src/scalar_impl.h + secp256k1/src/scalar_low.h + secp256k1/src/scalar_low_impl.h + secp256k1/src/secp256k1.c + secp256k1/src/testrand.h + secp256k1/src/testrand_impl.h + secp256k1/src/tests.c + secp256k1/src/tests_exhaustive.c + secp256k1/src/util.h + secp256k1/TODO source-repository head - type: git - location: https://github.com/haskoin/secp256k1-haskell.git + type: git + location: https://github.com/haskoin/secp256k1-haskell.git -custom-setup - setup-depends: base >= 4.8 && < 5 - , Cabal >= 1.10 +library + hs-source-dirs: + src + ghc-options: -Wall + cc-options: -DHAVE_CONFIG_H + include-dirs: + secp256k1 + secp256k1/contrib + secp256k1/include + c-sources: + secp256k1/contrib/lax_der_parsing.c + secp256k1/contrib/lax_der_privatekey_parsing.c + secp256k1/src/secp256k1.c + build-depends: + QuickCheck + , base >=4.8 && <5 + , base16-bytestring + , bytestring + , cereal + , entropy + , mtl + , string-conversions + exposed-modules: + Crypto.Secp256k1 + Crypto.Secp256k1.Internal + other-modules: + Paths_secp256k1 + default-language: Haskell2010 +test-suite secp256k1-test + type: exitcode-stdio-1.0 + main-is: Spec.hs + hs-source-dirs: + test + ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N + build-depends: + HUnit + , QuickCheck + , base + , base16-bytestring + , bytestring + , cereal + , cryptohash + , entropy + , mtl + , secp256k1 + , string-conversions + , test-framework + , test-framework-hunit + , test-framework-quickcheck2 + other-modules: + Crypto.Secp256k1.Internal.Tests + Crypto.Secp256k1.Tests + Paths_secp256k1 + default-language: Haskell2010