comAtprotoServerReserveKemKey function
Reserve a KEM key, for use with account creation. Its public key is published as the account's #atproto_kem verification method, which is used to establish shared secrets for spaces. Necessary so that a DID PLC operation can be constructed before the account exists. Counterpart to com.atproto.server.reserveSigningKey. Implemented by PDS.
Implementation
Future<XRPCResponse<ServerReserveKemKeyOutput>> comAtprotoServerReserveKemKey({
String? did,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoServerReserveKemKey,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {...?$unknown, if (did != null) 'did': did},
to: const ServerReserveKemKeyOutputConverter().fromJson,
);