comAtprotoServerReserveSigningKey function
Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented.
Implementation
Future<XRPCResponse<ServerReserveSigningKeyOutput>>
comAtprotoServerReserveSigningKey({
String? did,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoServerReserveSigningKey,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {...?$unknown, if (did != null) 'did': did},
to: const ServerReserveSigningKeyOutputConverter().fromJson,
);