go-libp2p-core/peer
Alex Stokes 686c1736fd
Compare multihash Code to IDENTITY when extracting public key
This PR is a non-substantive change with the goal of making this method
`ExtractPublicKey` from a `peer.ID` clearer to the reader. This goal is
accomplished by using the full name of the identity hash code `IDENTITY` instead
of the deprecated `ID` code. This change makes its clearer to the reader that
there is a trivial way to compute the public key given the digest. Without this
change it is easy to confuse `ID` with a concept relating to peer IDs (and thus
implying this function somehow computes a hash pre-image to get the
corrresponding public key.
2019-08-14 14:27:04 -07:00
..
addrinfo_serde.go Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00
addrinfo_test.go feat(peer): implement AddrInfosFromP2pAddrs and SplitAddr 2019-05-31 12:25:57 -07:00
addrinfo.go feat(peer): implement AddrInfosFromP2pAddrs and SplitAddr 2019-05-31 12:25:57 -07:00
peer_serde_test.go absorb {crypto,peer} test utils. (#8) 2019-05-23 16:07:58 +01:00
peer_serde.go Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00
peer_test.go fix duplicated import. 2019-05-23 16:14:50 +01:00
peer.go Compare multihash Code to IDENTITY when extracting public key 2019-08-14 14:27:04 -07:00
set.go Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00