Skip to content

Commit

Permalink
fix: remove deprecated Bytes call (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien authored Jul 22, 2021
1 parent 2efd313 commit ba28f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func signMessage(pid peer.ID, key crypto.PrivKey, m *pb.Message) error {

pk, _ := pid.ExtractPublicKey()
if pk == nil {
pubk, err := key.GetPublic().Bytes()
pubk, err := crypto.MarshalPublicKey(key.GetPublic())
if err != nil {
return err
}
Expand Down

0 comments on commit ba28f8e

Please sign in to comment.