pub fn add<T: Config>(
    claim_hash: ClaimHashOf<T>,
    ctype_hash: CtypeHashOf<T>,
    authorization: Option<T::AccessControl>
)
Expand description

Create a new attestation.

The attester can optionally provide a reference to an existing delegation that will be saved along with the attestation itself in the form of an attested delegation.

The referenced CType hash must already be present on chain.

If an optional delegation id is provided, the dispatch origin must be the owner of the delegation. Otherwise, it could be any DelegationEntityId.

Emits AttestationCreated.

Warning: Doc-Only

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