Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

refactor: VDR support for deactivate/update #2473

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

fqutishat
Copy link
Contributor

closes #2423

Signed-off-by: Firas Qutishat firas.qutishat@securekey.com

@codecov
Copy link

codecov bot commented Jan 21, 2021

Codecov Report

Merging #2473 (8ec7bd0) into main (635cbe2) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2473      +/-   ##
==========================================
+ Coverage   89.22%   89.24%   +0.01%     
==========================================
  Files         253      253              
  Lines       18495    18517      +22     
==========================================
+ Hits        16503    16525      +22     
  Misses       1173     1173              
  Partials      819      819              
Impacted Files Coverage Δ
pkg/vdr/httpbinding/vdr.go 92.00% <100.00%> (+0.69%) ⬆️
pkg/vdr/key/vdr.go 100.00% <100.00%> (ø)
pkg/vdr/peer/vdr.go 100.00% <100.00%> (ø)
pkg/vdr/registry.go 100.00% <100.00%> (ø)
pkg/vdr/web/vdr.go 100.00% <100.00%> (ø)

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 635cbe2...8ec7bd0. Read the comment docs.

func (v *VDR) Deactivate(did string, opts ...vdrapi.DIDMethodOption) error {
return fmt.Errorf("not supported")
}

// Accept did method.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does VDR indicate that it can handle only resolution vs the full interface?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to consider having two sets of VDRs loaded into the framework:

  • resolvers
  • writers / full lifecycle

and make the writer interface a superset of the resolver interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes hyperledger-archives#2423

Signed-off-by: Firas Qutishat <firas.qutishat@securekey.com>
@fqutishat fqutishat merged commit daecd33 into hyperledger-archives:main Jan 21, 2021
@fqutishat fqutishat deleted the 2423 branch January 21, 2021 15:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

VDR support for deactivate/update
3 participants