InMemoryNskeyKeyRing class
An in-memory NskeyKeyRing seeded directly with keypairs.
Test scaffolding: it exercises the data path without minting, publication
or conveyance. The production ring is PublishedNskeyKeyRing, which does
all three for real.
- Implemented types
Constructors
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
-
currentPublic(
String owner, String namespace) → Future< NskeyAdvertisement?> -
The generation new conveyances seal to for
(owner, namespace).override -
forget(
String owner, String namespace) → void -
Drop the current generation for
(owner, namespace)without touching the privates — what a ring looks like once an advertisement has aged out. -
heldNamespaces(
String owner) → Future< Set< String> > -
The namespaces of
owner's nskeys this client holds a private for, spelt as they were filed, answered without a round trip to the atServer.override -
heldPublic(
String owner, String namespace, String nskeyKid) → Future< PackageKey?> -
The public half of a named generation of
(owner, namespace)whose private this client holds, taken from what it holds rather than read from an advertisement, or null when it holds no such private.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
privateHalf(
String owner, String namespace, String nskeyKid, {String? writtenBy}) → Future< NskeyDecapsulationKey?> -
The NskeyDecapsulationKey this client holds for a named generation
of
(owner, namespace)— whatpqOpentakes, ready to use.override -
seedKeypair(
String owner, String namespace, {required Uint8List publicKey, required Uint8List privateKey, String keyAlgo = SecretSharingAlgos.xWing}) → String -
Seed both halves for
(owner, namespace)and make them current — the state a client is in once it holds the namespace key. Returns the generation's kid. -
seedPublicOnly(
String owner, String namespace, {required Uint8List publicKey, String keyAlgo = SecretSharingAlgos.xWing}) → String - Seed only the public half — a sender who can encapsulate to a recipient but cannot decapsulate, which is every cross-atSign sender.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited