packages feed

web3-crypto-1.0.1.0: web3-crypto.cabal

cabal-version:      1.12
name:               web3-crypto
version:            1.0.1.0
license:            Apache-2.0
license-file:       LICENSE
copyright:          (c) Aleksandr Krupenkin 2016-2024
maintainer:         mail@akru.me
author:             Aleksandr Krupenkin
homepage:           https://github.com/airalab/hs-web3#readme
bug-reports:        https://github.com/airalab/hs-web3/issues
synopsis:           Cryptograhical primitives for Haskell Web3 library.
description:
    This package implements Web3 specific cryptography and helper functions.

category:           Network
build-type:         Simple
extra-source-files:
    src/cbits/xxhash.h
    src/cbits/xxhash.c

source-repository head
    type:     git
    location: https://github.com/airalab/hs-web3

library
    exposed-modules:
        Crypto.Bip39
        Crypto.Ecdsa.Signature
        Crypto.Ecdsa.Utils
        Crypto.Ethereum
        Crypto.Ethereum.Keyfile
        Crypto.Ethereum.Signature
        Crypto.Ethereum.Utils
        Crypto.Random.HmacDrbg
        Data.Digest.Blake2
        Data.Digest.XXHash

    c-sources:        src/cbits/xxhash.c
    hs-source-dirs:   src
    other-modules:    Paths_web3_crypto
    default-language: Haskell2010
    include-dirs:     src/cbits
    ghc-options:
        -funbox-strict-fields -Wduplicate-exports -Widentities
        -Woverlapping-patterns -Wpartial-type-signatures
        -Wunrecognised-pragmas -Wtyped-holes -Wincomplete-patterns
        -Wincomplete-uni-patterns -Wmissing-fields -Wmissing-methods
        -Wmissing-exported-signatures -Wmissing-signatures -Wname-shadowing
        -Wunused-binds -Wunused-top-binds -Wunused-local-binds
        -Wunused-pattern-binds -Wunused-imports -Wunused-matches
        -Wunused-foralls -Wtabs

    build-depends:
        aeson >1.2 && <2.2,
        base >4.11 && <4.19,
        bytestring >0.10 && <0.12,
        containers >0.6 && <0.7,
        crypton >0.30 && <1.0,
        memory >0.14 && <0.19,
        memory-hexstring >=1.0 && <1.1,
        text >1.2 && <2.1,
        uuid-types >1.0 && <1.1,
        vector >0.12 && <0.14

test-suite tests
    type:             exitcode-stdio-1.0
    main-is:          Spec.hs
    c-sources:        src/cbits/xxhash.c
    hs-source-dirs:   tests src
    other-modules:
        Crypto.Ethereum.Test.KeyfileSpec
        Crypto.Ethereum.Test.SignatureSpec
        Crypto.Random.Test.HmacDrbgSpec
        Data.Digest.Test.Blake2Spec
        Data.Digest.Test.XXHashSpec
        Crypto.Bip39
        Crypto.Ecdsa.Signature
        Crypto.Ecdsa.Utils
        Crypto.Ethereum
        Crypto.Ethereum.Keyfile
        Crypto.Ethereum.Signature
        Crypto.Ethereum.Utils
        Crypto.Random.HmacDrbg
        Data.Digest.Blake2
        Data.Digest.XXHash
        Paths_web3_crypto

    default-language: Haskell2010
    include-dirs:     src/cbits
    ghc-options:
        -funbox-strict-fields -Wduplicate-exports -Widentities
        -Woverlapping-patterns -Wpartial-type-signatures
        -Wunrecognised-pragmas -Wtyped-holes -Wincomplete-patterns
        -Wincomplete-uni-patterns -Wmissing-fields -Wmissing-methods
        -Wmissing-exported-signatures -Wmissing-signatures -Wname-shadowing
        -Wunused-binds -Wunused-top-binds -Wunused-local-binds
        -Wunused-pattern-binds -Wunused-imports -Wunused-matches
        -Wunused-foralls -Wtabs -threaded -rtsopts -with-rtsopts=-N

    build-depends:
        aeson >1.2 && <2.2,
        base >4.11 && <4.19,
        bytestring >0.10 && <0.12,
        containers >0.6 && <0.7,
        crypton >0.30 && <1.0,
        hspec >=2.4.4 && <2.12,
        hspec-contrib >=0.4.0 && <0.6,
        hspec-discover >=2.4.4 && <2.12,
        hspec-expectations >=0.8.2 && <0.9,
        memory >0.14 && <0.19,
        memory-hexstring >=1.0 && <1.1,
        text >1.2 && <2.1,
        uuid-types >1.0 && <1.1,
        vector >0.12 && <0.14