pub async fn add_unverified_issuer(
    principal: Principal
) -> Result<Issuer, String>
Expand description

Adds an unverified issuer to the system.

§Arguments

  • principal - The principal ID of the issuer to be added.

§Returns

  • Result<Issuer, String> - Returns the newly created Issuer if successful, or an error message if failed.

§Errors

  • Returns an error if the caller is not a controller.
  • Returns an error if the issuer already exists.