pub fn remove<T: Config>(
    credential_id: CredentialIdOf<T>,
    authorization: Option<T::AccessControl>
)
Expand description

Removes the information pertaining a public credential from the chain.

The removal of the credential does not delete it entirely from the blockchain history, but only its link from the blockchain state to the blockchain history is removed.

Clients parsing public credentials should interpret the lack of such a link as the fact that the credential has been removed by its attester some time in the past.

This function fails if a credential already exists for the specified subject.

The dispatch origin must be authorized to remove the credential.

Emits CredentialRemoved.

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::remove.