1
0
mirror of https://github.com/libp2p/go-libp2p-core.git synced 2025-03-16 11:20:08 +08:00
Commit Graph

3 Commits

Author SHA1 Message Date
Steven Allen
dc718fa4da feat: support encoding/decoding peer IDs as CIDs _in text_ 2019-10-02 08:45:33 -07:00
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
Raúl Kripalani
6e566d10f4
Absorb go-libp2p abstractions and core types into this module () 2019-05-22 18:31:11 +01:00