Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Dec 12, 2024
1 parent 0321033 commit f80b719
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions network/p2p/keyutils/keyTranslator.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func FlowPublicKeyFromLibP2P(lpk lcrypto.PubKey) (fcrypto.PublicKey, error) {
return nil, lcrypto.ErrNotECDSAPubKey
}
// ferrying through DecodePublicKey to get the curve checks
//nolint:staticcheck // Reason: elliptic.Marshal is required for compatibility with existing systems.
pk_uncompressed := elliptic.Marshal(cryptoKey, cryptoKey.X, cryptoKey.Y)
// the first bit is the compression bit of X9.62
pubKey, err := crypto.DecodePublicKey(crypto.ECDSAP256, pk_uncompressed[1:])
Expand Down

0 comments on commit f80b719

Please sign in to comment.