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

Submitting the same "create" request may result in a different DID suffix #699

Closed
bstasyszyn opened this issue Jun 9, 2023 · 0 comments · Fixed by #700
Closed

Submitting the same "create" request may result in a different DID suffix #699

bstasyszyn opened this issue Jun 9, 2023 · 0 comments · Fixed by #700
Assignees
Labels
bug Something isn't working

Comments

@bstasyszyn
Copy link
Contributor

When calling NewCreateRequest multiple times with the "OpaqueDocument" field set to the same value each time, the "patches' array is built in random order and the delta hash (which is used to generate the DID suffix) can be different, resulting in a different DID suffix. The DID suffix should always be the same when submitting the same "create" operation.

@bstasyszyn bstasyszyn added the bug Something isn't working label Jun 9, 2023
@bstasyszyn bstasyszyn self-assigned this Jun 9, 2023
bstasyszyn added a commit to bstasyszyn/sidetree-core-go that referenced this issue Jun 9, 2023
closes trustbloc#699

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant