CertifiedAddrBook class abstract

CertifiedAddrBook manages signed peer records and "self-certified" addresses contained within them.

Implementers

Constructors

CertifiedAddrBook.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

consumePeerRecord(Envelope s, Duration ttl) Future<bool>
ConsumePeerRecord stores a signed peer record and the contained addresses for ttl duration. The addresses contained in the signed peer record will expire after ttl. If any address is already present in the peer store, it'll expire at max of existing ttl and provided ttl. The signed peer record itself will be expired when all the addresses associated with the peer, self-certified or not, are removed from the AddrBook.
getPeerRecord(PeerId p) Future<Envelope?>
GetPeerRecord returns an Envelope containing a peer record for the peer, or null if no record exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited