Registry

Mint DID

The format for a DID name requires a length between 5 and 54 characters, and only allows the use of lowercase letters a-z and digits 0-9.

function mint(address to, uint256 expiredTimestamp, string memory did, bytes memory evidence, string calldata avatar) public;
  • to: DID address

  • expiredTimestamp: the expired time of the evidence

  • did: DID name

  • evidence: the signature signed by HashKey DID

  • avatar: the url of avatar

Add authorization address

Authorize a DID to an address so that the address can view your DID information or log in to other systems on your behalf.

function addAuth(uint256 tokenId, address addr) public;
  • tokenId: DID token id

  • addr: authorization address

Remove authorization address

Remove the address that you had previously authorized.

function removeAuth(uint256 tokenId, address addr) public;
  • tokenId: DID token id

  • addr: authorization address

Last updated