Skip to content

build(crypto/secp256k1): Update btcec/v2 to v2.3.4 (backport #3728)#3755

Merged
melekes merged 3 commits intov1.xfrom
mergify/bp/v1.x/pr-3728
Aug 19, 2024
Merged

build(crypto/secp256k1): Update btcec/v2 to v2.3.4 (backport #3728)#3755
melekes merged 3 commits intov1.xfrom
mergify/bp/v1.x/pr-3728

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Aug 19, 2024

Running a go get should consistently build this project as per the README. However, the latest patch release of btcec/v2 is not a proper Semantic Versioning patch. It removes an error return value from ecdsa.SignCompact function (btcsuite/btcd@e5d15fd). This is functionally a no-op, as the underlying function was hardcoded to always return nil as error. However, this is still a breaking change (compiler/build error) for all consumers of this function, as they historically expected two return values, but now only get one.

Ref: btcsuite/btcd#2211
Ref: #3531
Ref: #3536


PR checklist

Running a `go get` should consistently build this project as per the
README. However, the latest patch release of `btcec/v2` is not a proper
Semantic Versioning patch. It removes an error return value from
`ecdsa.SignCompact` function (btcsuite/btcd@e5d15fd). This is
functionally a no-op, as the underlying function was hardcoded to always
return `nil` as error. However, this is still a breaking change
(compiler/build error) for all consumers of this function, as they
historically expected two return values, but now only get one.

Ref: btcsuite/btcd#2211
Ref: #3531
Ref: #3536

---

#### PR checklist

- [ ] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 17abb80)

# Conflicts:
#	crypto/secp256k1/secp256k1.go
@mergify mergify bot requested a review from a team as a code owner August 19, 2024 08:17
@mergify mergify bot requested a review from a team August 19, 2024 08:17
@mergify mergify bot added the conflicts label Aug 19, 2024
@mergify

This comment was marked as resolved.

@melekes melekes merged commit 6e04855 into v1.x Aug 19, 2024
@melekes melekes deleted the mergify/bp/v1.x/pr-3728 branch August 19, 2024 08:40
@k-yang
Copy link

k-yang commented Aug 19, 2024

Would it be possible to backport these changes onto v0.37.x and v0.38.x? We use cometbft v0.37 but one of our new dependency imports automatically brings in btcec v2.3.4 which is incompatible.

@mergify mergify bot added automerge and removed automerge labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants