MemoryKeyBook class

A memory-based implementation of the KeyBook interface.

Implemented types

Constructors

MemoryKeyBook.new()
Creates a new memory-based key book implementation.

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.
override
addPubKey(PeerId id, PublicKey pk) → void
AddPubKey stores the public key of a peer.
override
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.
override
privKey(PeerId id) Future<PrivateKey?>
PrivKey returns the private key of a peer, if known. Generally this might only be our own private key.
override
pubKey(PeerId id) Future<PublicKey?>
PubKey returns the public key of a peer.
override
removePeer(PeerId id) → void
RemovePeer removes all keys associated with a peer.
override
toString() String
A string representation of this object.
inherited

Operators

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