Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.4 KB

DidRegistry.md

File metadata and controls

31 lines (19 loc) · 1.4 KB

Did Registry

Did-Registry stack of contracts are based on Lacchain did registry.

Terminology

Base Considerations

  • Contracts consider versioning; this helps to better handle changes and improvements in case the logic changes.
  • Closer to ERC-1056 this contract considers:
    • onchain delegates
  • Additionally a flag was added on revocations that indicates whether the attribute/delegate was removed because of compromission or because of a planned change.

Smart Contract Considerations

  • Additionally, on managing attributes it registers the attributes in a double mapping which allows to query the validity of these attributes by querying the smart contract state of the did registry
  • Considers lacchain gas model by extending the BaseRelayRecipient contract and passing the base relay address as a param to the constructor.

Smart contracts

The same as above, but with Gas Model support:

Smart contracts Methods and Emmitted events