KeyBook class abstract

KeyBook tracks the keys of Peers.

Implementers

Constructors

KeyBook.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

addPrivKey(PeerId id, PrivateKey sk) → void
AddPrivKey stores the private key of a peer.
addPubKey(PeerId id, PublicKey pk) → void
AddPubKey stores the public key of a peer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peersWithKeys() Future<List<PeerId>>
PeersWithKeys returns all the peer IDs stored in the KeyBook.
privKey(PeerId id) Future<PrivateKey?>
PrivKey returns the private key of a peer, if known. Generally this might only be our own private key.
pubKey(PeerId id) Future<PublicKey?>
PubKey returns the public key of a peer.
removePeer(PeerId id) → void
RemovePeer removes all keys associated with a peer.
toString() String
A string representation of this object.
inherited

Operators

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