hypersign-protocol / hid-node

A permissionless blockchain network to manage digital identity and access rights
https://hypersign.id
Apache License 2.0
223 stars 23 forks source link

Fix: Single DIDDoc update operation #344

Closed arnabghose997 closed 1 year ago

arnabghose997 commented 1 year ago

The PR aims to fix the issues related DID Document Update process. Following tests cases covers the issue:

  1. FAIL: Jenny creates a DID. She then attempts to update the DIDDoc by adding a new Verification method. She passes signature only for old VM.

  2. PASS: Jenny attempts to update the same didDoc by passing signatures for both old and new verification methods.

  3. PASS: Jenny removes the initial verification method she had added. She passes only one signature corresponding to the latest VM