Skip to content

Commit

Permalink
fix: geth p2p bug
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-io-bot committed Feb 1, 2025
1 parent 706acdd commit 7d01f88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blast-geth/crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func UnmarshalPubkey(pub []byte) (*ecdsa.PublicKey, error) {
if x == nil {
return nil, errInvalidPubkey
}
if !S256().IsOnCurve(x, y) {
return nil, errInvalidPubkey
}
return &ecdsa.PublicKey{Curve: S256(), X: x, Y: y}, nil
}

Expand Down

1 comment on commit 7d01f88

@geomad
Copy link

@geomad geomad commented on 7d01f88 Feb 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? Geth team mentioned the bug was introduced in version 1.14, I can see blast uses 1.13

Please sign in to comment.