Skip to content

Commit

Permalink
Merge pull request #99 from libp2p/fix/deprecations
Browse files Browse the repository at this point in the history
fix: remove deprecated call to pk.Bytes
  • Loading branch information
Stebalien authored Jul 22, 2021
2 parents 9832fde + 061a86e commit ef07216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/security/noise/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (s *secureSession) readHandshakeMessage(hs *noise.HandshakeState) ([]byte,
func (s *secureSession) generateHandshakePayload(localStatic noise.DHKey) ([]byte, error) {
// obtain the public key from the handshake session so we can sign it with
// our libp2p secret key.
localKeyRaw, err := s.LocalPublicKey().Bytes()
localKeyRaw, err := crypto.MarshalPublicKey(s.LocalPublicKey())
if err != nil {
return nil, fmt.Errorf("error serializing libp2p identity key: %w", err)
}
Expand Down

0 comments on commit ef07216

Please sign in to comment.