Private ReadonlygrpcPrivate ReadonlyloggerPrivate ReadonlymetadataExecutes the key-generation job by running the distributed key-generation protocol via the cryptographic engine.
BullMQ job carrying a KeyGenerationJobData payload.
The hex public key and base64 public-key package on success.
BullMQ processor for the
key-generationqueue.Dequeues key-generation jobs, calls the cryptographic engine
GenerateKeyRPC, and — critically — persists the returnedpublicKeyPackageto the key-metadata store before marking the job as completed.Persistence guarantee: the
publicKeyPackageis stored atomically in the key-metadata store as part of this method. If this method throws (including after a successful gRPC response), BullMQ marks the job as failed and the caller can retry via a new job. There is no partial-resume mechanism in the engine; a retry must run the full key-generation protocol again.No automatic retry:
attemptsis set to 1 in the producer because a failed or aborted session cannot be resumed — each attempt must start a fresh protocol run.