Function delete_signer

Source
pub async fn delete_signer<J, RR, TR, NR, NFR, SR, TCR, PR>(
    signer_id: String,
    state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<HttpResponse, ApiError>
Expand description

Deletes a signer by ID.

§Arguments

  • signer_id - The ID of the signer to delete.
  • state - The application state containing the signer repository.

§Returns

A success response or an error if deletion fails.

§Security

This endpoint ensures that signers cannot be deleted if they are still being used by any relayers. This prevents breaking existing relayer configurations and maintains system integrity.