[REQUEST] MIT domain certificates
canguruhh opened this issue · 2 comments
When creating a MST the user can get a domain certificate that restricts the creation of other MSTs that use the same domain prefix. The domain certificate MVS for example restricts the creation of MST symbols that start with MVS. for example MVS.ABC
For MITs we currently don't have certificates. Instead of creating new certificate types we can reuse the MST domain certificates for this purpose.
Change the rules of the mvsd transaction validation to restrict the creation of MIT.
- If a user creates a MIT for which symbol there is no existing domain certificates it should be allowed like it is today.
- If there is a domain certificate that matches the prefix of the MIT symbol then this domain certificate must be added as in and output of the transaction.
- Other MST certificates should not restrict MIT creation (name certificates).
The mvsd command registermit must be adjusted to automatically check if the user has access to the required domain certificate and add it to the transaction. This is the same behaviour as the MST issuance.
MIT domain certificates is work in prive chain now,
https://github.com/baidang201/metaverse/tree/365-mit-domain-cert