mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-27 23:40:11 +08:00
Interfaces and abstractions that make up go-libp2p
686c1736fd
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. |
||
---|---|---|
connmgr | ||
crypto | ||
discovery | ||
event | ||
helpers | ||
host | ||
metrics | ||
mux | ||
network | ||
peer | ||
peerstore | ||
pnet | ||
protocol | ||
routing | ||
sec | ||
test | ||
transport | ||
.travis.yml | ||
alias.go | ||
compat-check | ||
go.mod | ||
go.sum | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md | ||
tools.go |
go-libp2p-core
Home to the interfaces and abstractions that make up go-libp2p.
Install
go get github.com/libp2p/go-libp2p-core
Usage
Check out the GoDocs.
License
Dual-licensed under MIT and ASLv2, by way of the Permissive License Stack.