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

feat: Add support for anchor origin #550

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Conversation

sandrask
Copy link
Contributor

@sandrask sandrask commented Feb 17, 2021

Add optional anchor origin in:

  • suffix data for create operation
  • signed model for recover operation

Add anchor origin object validator to parser and validate anchor origin against it. Default object validator accepts all objects.

Closes #546

Signed-off-by: Sandra Vrtikapa [email protected]

@cla-bot cla-bot bot added the cla-signed label Feb 17, 2021
@sandrask sandrask changed the title feat: Add support for anchor origin wip: Add support for anchor origin Feb 17, 2021
@codecov
Copy link

codecov bot commented Feb 17, 2021

Codecov Report

Merging #550 (9ed9538) into main (a0aa65c) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #550      +/-   ##
==========================================
- Coverage   91.88%   91.85%   -0.03%     
==========================================
  Files          75       75              
  Lines        3094     3108      +14     
==========================================
+ Hits         2843     2855      +12     
- Misses        142      143       +1     
- Partials      109      110       +1     
Impacted Files Coverage Δ
pkg/versions/0_1/client/create.go 94.73% <100.00%> (+0.29%) ⬆️
pkg/versions/0_1/client/recover.go 96.00% <100.00%> (+0.08%) ⬆️
pkg/versions/0_1/operationparser/create.go 86.76% <100.00%> (+0.40%) ⬆️
pkg/versions/0_1/operationparser/operation.go 100.00% <100.00%> (ø)
pkg/versions/0_1/operationparser/recover.go 91.83% <100.00%> (-1.92%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a0aa65c...9ed9538. Read the comment docs.

troyronda
troyronda previously approved these changes Feb 17, 2021
Add optional anchor origin in:
- suffix data for create operation
- signed model for recover operation

Closes trustbloc#546

Signed-off-by: Sandra Vrtikapa <[email protected]>
@sandrask sandrask changed the title wip: Add support for anchor origin feat: Add support for anchor origin Feb 18, 2021
@sandrask sandrask merged commit 3fbd0bf into trustbloc:main Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for anchorOrigin
4 participants