pub fn associate_account<T: Config>(
    req: AssociateAccountRequest,
    expiration: BlockNumberFor<T>
)
Expand description

Associate the given account to the DID that authorized this call.

The account has to sign the DID and a blocknumber after which the signature expires in order to authorize the association.

The signature will be checked against the scale encoded tuple of the method specific id of the did identifier and the block number after which the signature should be regarded invalid.

Emits AssociationEstablished and, optionally, AssociationRemoved if there was a previous association for the account.

Weight: O(1)

  • Reads: ConnectedDids + ConnectedAccounts + DID Origin Check
  • Writes: ConnectedDids + ConnectedAccounts

Warning: Doc-Only

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