[Task] Move proof
in IotaDocument
outside of metadata
#714
Labels
Breaking change
A change to the API that requires a major release. Part of "Changed" section in changelog
Milestone
Description
Move the
proof
section inIotaDocument
from inside itsmetadata
to the root level.Current JSON:
Proposed JSON:
Motivation
This change would remove the special case for signing DID Documents, which stands in contrast to all other structs which have their proof at the root level, such as
Credential
andPresentation
.While in Rust this is handled by the
SetSignature
trait, this discrepancy has caused problems in the Wasm bindings and will likely continue to cause problems. This also causes problems when verifying data, because we need to know what type of data we're dealing with in order to know where its signature is located.The simplest solution is to move the DID Document
proof
to align with other objects.To-do list
proof
inIotaDocument
.Change checklist
The text was updated successfully, but these errors were encountered: