Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

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 committed Jul 22, 2021
2 parents 461343e + f4e6f23 commit f2cb2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handshake.go
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 f2cb2e3

Please sign in to comment.