Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] wrap v3 document #84

Open
Nebulis opened this issue Apr 5, 2020 · 0 comments
Open

[refactor] wrap v3 document #84

Nebulis opened this issue Apr 5, 2020 · 0 comments
Labels
enhancement New feature or request w3c

Comments

@Nebulis
Copy link
Contributor

Nebulis commented Apr 5, 2020

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

  • For each key, we must generate a salt and add it to the proof
  • Once all salts have been generated, we must compute the signature and add it to the proof
  • the logic to compute the salts and the signature remains the same
@Nebulis Nebulis added enhancement New feature or request w3c labels Apr 5, 2020
@Nebulis Nebulis changed the title [refactor] - wrap v3 document [refactor] wrap v3 document Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request w3c
Projects
None yet
Development

No branches or pull requests

1 participant