Open
Description
In Prism Node, the CreateDIDOperation stores keys in the public_keys table, where there’s a constraint that the combination of key_id
(name) and did_suffix
must be unique. Similarly, for services, the combination of service_id
and did_suffix
must also be unique.
However, when performing an UpdateDIDOperation, I’ve noticed that there’s no check to ensure whether the provided key_ids or service_ids are already in use. As a result, if such an update operation is submitted on-chain, the syncing process fails because the SQL statements attempt to insert records that violate these composite unique key constraints.
Metadata
Metadata
Assignees
Labels
No labels