Open-Attestation / open-attestation

Meta framework for providing digital provenance and integrity to documents.
https://openattestation.com
Apache License 2.0
54 stars 18 forks source link

[refactor] wrap v3 document #84

Open Nebulis opened 4 years ago

Nebulis commented 4 years ago

Current behavior

The implementation takes an object, and return a new object where each property has been added a salt. Then the signature is computer (merkle root). and added to the document (at the root) While mapping to W3C document, the salt and the signature are extracted and moved to the proof property.

Expected behavior

Salt and Signature are directly added into the proof property, so that we don't need the mapping function.

Proposal