private static method

PrivateKeyBuilder private(
  1. String key, {
  2. String? namespace,
})

Private key's that are created by the owner of the atSign and these keys are not shown in the scan.

Builds a private key and returns a PrivateKeyBuilder. Private key's are not returned when fetched for key's of atSign.

Example: privatekey:phone.wavi@alice

AtKey privateKey = AtKey.private('phone', namespace: 'wavi').build();

Implementation

static PrivateKeyBuilder private(String key, {String? namespace}) {
  return PrivateKeyBuilder()
    ..key(key)
    ..namespace(namespace);
}