Skip to content

Commit

Permalink
Merge pull request #1427 from maticnetwork/v1.5.5-candidate
Browse files Browse the repository at this point in the history
v1.5.5 release
  • Loading branch information
pratikspatil024 authored Jan 30, 2025
2 parents ceb62bb + 983b715 commit fd71beb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,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
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 5 // Minor version component of the current release
VersionPatch = 4 // Patch version component of the current release
VersionPatch = 5 // Patch version component of the current release
VersionMeta = "" // Version metadata to append to the version string
)

Expand Down

0 comments on commit fd71beb

Please sign in to comment.