Skip to content

Commit c19e622

Browse files
committed
fix deprecation warnings
1 parent 16cf46e commit c19e622

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

libsecp256k1.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 1.12
55
-- see: https://github.com/sol/hpack
66

77
name: libsecp256k1
8-
version: 0.2.0
8+
version: 0.2.1
99
synopsis: Bindings for secp256k1
1010
description: Sign and verify signatures using the secp256k1 library.
1111
category: Crypto

package.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: libsecp256k1
2-
version: 0.2.0
2+
version: 0.2.1
33
synopsis: Bindings for secp256k1
44
description: Sign and verify signatures using the secp256k1 library.
55
category: Crypto

src/Crypto/Secp256k1/Prim.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ foreign import capi safe "secp256k1_schnorrsig.h value secp256k1_nonce_function_
11171117
-- 'taggedSha256' and then sign the hash. Tagged hashing allows
11181118
-- providing an context-specific tag for domain separation. This prevents
11191119
-- signatures from being valid in multiple contexts by accident.
1120-
foreign import capi safe "secp256k1_schnorrsig.h secp256k1_schnorrsig_sign"
1120+
foreign import capi safe "secp256k1_schnorrsig.h secp256k1_schnorrsig_sign32"
11211121
schnorrsigSign ::
11221122
-- | pointer to a context object, initialized for signing (cannot be NULL)
11231123
Ctx ->
@@ -1364,15 +1364,15 @@ foreign import capi safe "secp256k1.h secp256k1_scratch_space_destroy"
13641364

13651365
-- * Deprecated
13661366
{-# DEPRECATED ecPrivkeyNegate "use ecSeckeyNegate instead" #-}
1367-
foreign import capi safe "secp256k1.h secp256k1_ec_privkey_negate"
1367+
foreign import capi safe "secp256k1.h secp256k1_ec_seckey_negate"
13681368
ecPrivkeyNegate ::
13691369
Ctx ->
13701370
Ptr Tweak32 ->
13711371
IO Ret
13721372

13731373

13741374
{-# DEPRECATED ecPrivkeyTweakAdd "use ecSeckeyTweakAdd instead" #-}
1375-
foreign import capi safe "secp256k1.h secp256k1_ec_privkey_tweak_add"
1375+
foreign import capi safe "secp256k1.h secp256k1_ec_seckey_tweak_add"
13761376
ecPrivkeyTweakAdd ::
13771377
Ctx ->
13781378
Ptr Seckey32 ->
@@ -1381,7 +1381,7 @@ foreign import capi safe "secp256k1.h secp256k1_ec_privkey_tweak_add"
13811381

13821382

13831383
{-# DEPRECATED ecPrivkeyTweakMul "use ecSeckeyTweakMul instead" #-}
1384-
foreign import capi safe "secp256k1.h secp256k1_ec_privkey_tweak_mul"
1384+
foreign import capi safe "secp256k1.h secp256k1_ec_seckey_tweak_mul"
13851385
ecPrivkeyTweakMul ::
13861386
Ctx ->
13871387
Ptr Seckey32 ->

0 commit comments

Comments
 (0)