csecp256k1

secp256k1 bindings.
Log | Files | Refs | README | LICENSE

commit 2dd93a9ec79c4b476de753dd604f491704e8f27d
parent 8bba77b2535e634a53e16fc7d0ee52d1553bffac
Author: Jared Tobin <jared@jtobin.io>
Date:   Sun, 25 Feb 2024 08:17:32 +0400

Misc commentary.

Diffstat:
Msecp256k1-sys/test/Main.hs | 4++--
Msecp256k1-sys/vendor-libsecp.sh | 10++++------
2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/secp256k1-sys/test/Main.hs b/secp256k1-sys/test/Main.hs @@ -76,6 +76,8 @@ units = testGroup "unit tests" [ , schnorr_verify ] +-- context + wcontext :: (Ptr Context -> IO a) -> IO a wcontext = bracket @@ -87,8 +89,6 @@ wentropy c = do bs <- E.getEntropy 32 BS.useAsCString bs $ \(F.castPtr -> b) -> c b --- context - context_create :: TestTree context_create = testCase "secp256k1_context_create (non-null)" $ wcontext $ \tex -> assertBool "non-null" $ tex /= F.nullPtr diff --git a/secp256k1-sys/vendor-libsecp.sh b/secp256k1-sys/vendor-libsecp.sh @@ -2,6 +2,8 @@ set -e # NB adapted from rust-secp256k1/secp256k1-sys/vendor-libsecp.sh +# +# https://github.com/rust-bitcoin/rust-secp256k1 # Set default variables if [ -z "$SECP_VENDOR_GIT_ROOT" ]; then @@ -105,12 +107,8 @@ find "$DIR" \ -print0 | xargs -0 sed -i "/^#include/! s/ecdsa_signature_parse_der_lax/haskellsecp256k1_v${SECP_VENDOR_VERSION_CODE}_ecdsa_signature_parse_der_lax/g" cd "$SECP_SYS" -# -# XX jtobin: handle this appropriately for haskell below -# -# # Update the `links = ` in the manifest file. -# sed -i -r "s/^links = \".*\"$/links = \"haskellsecp256k1_v${SECP_VENDOR_VERSION_CODE}\"/" Cargo.toml -# # Update the extern references in the Haskell FFI source files. + +# Update the extern references in the Haskell FFI source files. find "./lib/" \ -name "*.hs" \ -type f \