v0.4.0
Major features
Signed envelopes and peer records
The record
package now includes the Record
and Envelope
data types, and related functions. An Envelope
that allows libp2p peers to certify data such as addresses, capabilities, protocol support, etc. Such payloads are called Records
.
The peer
package now offers the PeerRecord
record type. It implements the record.Record
interface, and enables nodes to certify their own addresses to peers in a sequentially versioned manner.
Peerstore support for certified peer records
The peerstore
package now offers the CertifiedAddrBook
interface, which peerstores supporting certified peer records can implement to enable users to consume and query certified peer records from the network.
Use the peerstore.GetCertifiedAddrBook()
function to attempt to downcast an ordinary peerstore.AddrBook
implementation to its certified counterpart.
Other changes
- New
crypto.PubKeyToStdKey
andcrypto.PrivKeyToStdKey
functions to convert from libp2p keys to their stdlib counterparts. - Minor eventbus events refactoring.
- Dependency upgrades.