diff --git a/examples/libp2p-host/README.md b/examples/libp2p-host/README.md index e84834a61726691fc176ad72d46ecb50da298b04..ba59b7d4bd7ec520b07be4d399d2df33963c99cb 100644 --- a/examples/libp2p-host/README.md +++ b/examples/libp2p-host/README.md @@ -31,7 +31,7 @@ if err != nil { // A peerstore holds information about peers, including your own ps := pstore.NewPeerstore() ps.AddPrivKey(pid, priv) -ps.AddPubKey(pid, priv) +ps.AddPubKey(pid, pub) ``` Next, you'll need at least one address that you want to listen on. You can go from a string to a multiaddr like this: