*: Link to libp2p/specs in doc comments (#3077)

This commit is contained in:
João Oliveira
2022-11-04 10:32:41 +00:00
committed by GitHub
parent 1ba9e4579d
commit 280c51ef83
15 changed files with 44 additions and 14 deletions

View File

@ -35,6 +35,7 @@ const MAX_INLINE_KEY_LENGTH: usize = 42;
/// Identifier of a peer of the network.
///
/// The data is a multihash of the public key of the peer.
/// See the [spec](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md) for more information.
#[derive(Clone, Copy, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct PeerId {
multihash: Multihash,