Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

v0.4.0

Compare
Choose a tag to compare
@raulk raulk released this 06 Mar 10:02
· 140 commits to master since this release
df4636f

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 and crypto.PrivKeyToStdKey functions to convert from libp2p keys to their stdlib counterparts.
  • Minor eventbus events refactoring.
  • Dependency upgrades.