Function public_credentials::pallet::dispatchables::reclaim_deposit
source · pub fn reclaim_deposit<T: Config>(credential_id: CredentialIdOf<T>)
Expand description
Removes the information pertaining a public credential from the chain and returns the deposit to its payer.
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 the owner of the deposit, hence not the credential’s attester.
Emits CredentialRemoved
.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::reclaim_deposit
.