pub struct CallApi<'api> { /* private fields */ }

Implementations

Register target_account with a new Identity.

Failure
  • origin has to be a active CDD provider. Inactive CDD providers cannot add new claims.
  • target_account (primary key of the new Identity) can be linked to just one and only one identity.
  • External secondary keys can be linked to just one identity.
Weight

7_000_000_000 + 600_000 * secondary_keys.len()

Invalidates any claim generated by cdd from disable_from timestamps.

You can also define an expiration time, which will invalidate all claims generated by that cdd and remove it as CDD member group.

Deprecated. Use remove_secondary_keys instead.

Call this with the new primary key. By invoking this method, caller accepts authorization to become the new primary key of the issuing identity. If a CDD service provider approved this change (or this is not required), primary key of the DID is updated.

The caller (new primary key) must be either a secondary key of the issuing identity, or unlinked to any identity.

Differs from rotate_primary_key_to_secondary in that it will unlink the old primary key instead of leaving it as a secondary key.

Arguments
  • owner_auth_id Authorization from the owner who initiated the change
  • cdd_auth_id Authorization from a CDD service provider

Set if CDD authorization is required for updating primary key of an identity. Callable via root (governance)

Arguments
  • auth_required CDD Authorization required or not

Join an identity as a secondary key.

Leave the secondary key’s identity.

Adds a new claim record or edits an existing one.

Only called by did_issuer’s secondary key.

Marks the specified claim as revoked.

Deprecated. Use set_secondary_key_permissions instead.

Placeholder for removed legacy_set_permission_to_signer.

It disables all secondary keys at did identity.

Errors

Re-enables all secondary keys of the caller’s identity.

Adds an authorization.

Removes an authorization. _auth_issuer_pays determines whether the issuer of the authorisation pays the transaction fee

Deprecated. Use add_secondary_keys_with_authorization instead.

Add Claim::InvestorUniqueness claim for a given target identity.

Weight of the this extrinsic is depend on the computation that used to validate the proof of claim, which will be a constant independent of user inputs.

Arguments
  • origin - Who provides the claim to the user? In this case, it’s the user’s account id as the user provides.
  • target - IdentityId to which the claim gets assigned.
  • claim - InvestorUniqueness claim details.
  • proof - To validate the self attestation.
  • expiry - Expiry of claim.
Errors
  • DidMustAlreadyExist Target should already been a part of the ecosystem.
  • ClaimVariantNotAllowed When origin trying to pass claim variant other than InvestorUniqueness.
  • ConfidentialScopeClaimNotAllowed When issuer is different from target or CDD_ID is invalid for given user.
  • `InvalidScopeClaim When proof is invalid.
  • InvalidCDDId when you are not the owner of that CDD_ID.

Assuming this is executed by the GC voting majority, adds a new cdd claim record.

Assuming this is executed by the GC voting majority, removes an existing cdd claim record.

Revokes a specific claim using its Claim Unique Index composed by target, claim_type, and scope.

Please note that origin must be the issuer of the target claim.

Errors
  • TargetHasNonZeroBalanceAtScopeId when you try to revoke a InvestorUniqueness* claim, and target identity still have any balance on the given scope.

Call this with the new primary key. By invoking this method, caller accepts authorization to become the new primary key of the issuing identity. If a CDD service provider approved this change, (or this is not required), primary key of the DID is updated.

The caller (new primary key) must be either a secondary key of the issuing identity, or unlinked to any identity.

Differs from accept_primary_key in that it will leave the old primary key as a secondary key with the permissions specified in the corresponding RotatePrimaryKeyToSecondary authorization instead of unlinking the old primary key.

Arguments
  • owner_auth_id Authorization from the owner who initiated the change
  • cdd_auth_id Authorization from a CDD service provider

Adds secondary keys to target identity id.

Keys are directly added to identity because each of them has an authorization.

Arguments:
- `origin` which must be the primary key of the identity `id`.
- `id` to which new secondary keys will be added.
- `additional_keys` which includes secondary keys,
   coupled with authorization data, to add to target identity.
Errors
- Can only called by primary key owner.
- Keys should be able to linked to any identity.

Sets permissions for an specific target_key key.

Only the primary key of an identity is able to set secondary key permissions.

Removes specified secondary keys of a DID if present.

Errors

The extrinsic can only called by primary key owner.

Register custom claim type.

Errors
  • CustomClaimTypeAlreadyExists The type that is being registered already exists.
  • CounterOverflow CustomClaimTypeId has overflowed.
  • TooLong The type being registered is too lang.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert from a value of T into an equivalent instance of Option<Self>. Read more
Consume self to return Some equivalent value of Option<T>. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Should always be Self
Convert from a value of T into an equivalent instance of Self. Read more
Consume self to return an equivalent value of T. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more