ixofoundation / ixo-blockchain

ixo blockchain SDK
Apache License 2.0
41 stars 29 forks source link

General: Require All DIDs To Be Registered #101

Closed migueldingli1997 closed 1 year ago

migueldingli1997 commented 4 years ago

The blockchain sometimes allows use of DIDs that have not been registered to the did module. An example of this is project creation, where the project creator (senderDid) does not need to be registered. A registration check is performed using GetDidDoc which returns an error if the DidDoc for a DID does not exist.

migueldingli1997 commented 4 years ago

This footprint of this issue has been reduced greatly as of #145 as any DID used for signing needs to be registered in order for us to obtain its pubkey and verify signatures. This most likely leaves just the bonds module and maybe the project module that make use of unregistered DIDs.