comAtprotoServerReserveSigningKey function

Future<XRPCResponse<ServerReserveSigningKeyOutput>> comAtprotoServerReserveSigningKey({
  1. String? did,
  2. required ServiceContext $ctx,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

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,
);