seedPublicOnly method

String seedPublicOnly(
  1. String owner,
  2. String namespace, {
  3. required Uint8List publicKey,
  4. String keyAlgo = SecretSharingAlgos.xWing,
})

Seed only the public half — a sender who can encapsulate to a recipient but cannot decapsulate, which is every cross-atSign sender.

Implementation

String seedPublicOnly(
  String owner,
  String namespace, {
  required Uint8List publicKey,
  String keyAlgo = SecretSharingAlgos.xWing,
}) {
  final advertisement = NskeyAdvertisement.single(
    publicKey: publicKey,
    alg: keyAlgo,
    suites: SecretSharingAlgos.openableSuitesFor(keyAlgo),
  );
  _current[_scope(owner, namespace)] = advertisement;
  return advertisement.nskeyKid;
}