go-ethereum/crypto
Alex Gartner 30ce17386b
crypto: use decred secp256k1 directly (#30595)
Use `github.com/decred/dcrd/dcrec/secp256k1/v4` directly rather than
`github.com/btcsuite/btcd/btcec/v2` which is just a wrapper around the
underlying decred library. Inspired by
https://github.com/cosmos/cosmos-sdk/pull/15018

`github.com/btcsuite/btcd/btcec/v2` has a very annoying breaking change
when upgrading from `v2.3.3` to `v2.3.4`. The easiest way to workaround
this is to just remove the wrapper.

Would be very nice if you could backport this to the release branches.

References:
- https://github.com/btcsuite/btcd/issues/2221
- https://github.com/cometbft/cometbft/pull/4294
- https://github.com/cometbft/cometbft/pull/3728
- https://github.com/zeta-chain/node/pull/2934
2024-10-15 11:49:08 +03:00
..
blake2b crypto/blake2b: put architecture-dependent features behind build-tag (#28381) 2023-10-19 14:04:26 +02:00
bn256 all: fix docstrings (#29311) 2024-03-22 20:29:12 +08:00
ecies all: update to go version 1.22.1 (#28946) 2024-03-18 17:36:50 +01:00
kzg4844 crypto/kz4844: pass blobs by ref (#29050) 2024-03-13 07:51:46 +01:00
secp256k1 crypto/secp256k1: change receiver variable name to lowercase (#29889) 2024-05-30 16:24:16 +02:00
signify crypto/signify: close tmp key file in test (#29444) 2024-04-04 12:20:54 +02:00
crypto.go crypto: remove hardcoded value for secp256k1.N (#30126) 2024-07-09 13:19:25 +02:00
crypto_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
signature_cgo.go all: update to go version 1.22.1 (#28946) 2024-03-18 17:36:50 +01:00
signature_nocgo.go crypto: use decred secp256k1 directly (#30595) 2024-10-15 11:49:08 +03:00
signature_test.go all: remove duplicate word in comments (#29531) 2024-04-15 08:34:31 +02:00