Usage

We have outlined the step-by-step process required to utilize Mitum's account abstraction functionality. From DID registration to user operation creation and signing, the guide explains each step in detail and provides key methods needed for implementation, making it easy for developers to follow.

Preliminary Step 1 - DID Registry Operations

Registering DID Registry Contract Model

  • authdid.register()

Creating a DID

  • authdid.create()

Retrieving DID Document

  • authdid.getDocument()

Updating DID Document

  • authdid.updateDocument()

Preliminary Step 2 - Fee Proxy Operations

Registering Recipient in proxy_payer Contract

  • contract.updateRecipient()

Account Abstraction Operations - User Operation Workflow

Creating a User Operation

  • aa.createUserOperation()

Adding Alternate Signatures

  • aa.addAlterSign()

  • <UserOperation>.addAlterSign()

Adding Settlement

  • aa.setSettlement()

  • <UserOperation>.setSettlement()

Adding ProxyPayer (Optional)

  • aa.setProxyPayer()

  • <UserOperation>.setProxyPayer()

Note: There is no fixed order for adding alternate signatures, adding settlement, or adding ProxyPayer after creating a user operation. However, adding alternate signatures and adding settlement must be completed before adding the sender's signature.

Adding signature of op_sender

  • <UserOperation>.sign()

  • operation.sign()

  • signer.sign()

Last updated