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: Store VC and retrieve VC using edge client #26

Merged
merged 1 commit into from
Jan 25, 2020

Conversation

talwinder50
Copy link
Member

closes: #9

@cla-bot cla-bot bot added the cla-signed label Jan 23, 2020
@todo
Copy link

todo bot commented Jan 23, 2020

create the profile and get the prefix of the ID from the profile issue-47

https://github.com/trustbloc/edge-service/blob/0aacbefc84dca7be21a0dbefe56f2946bd34bed8/pkg/restapi/vc/operation/operations.go#L43-L47


This comment was generated by todo based on a TODO comment in 0aacbef in #26. cc @talwinder50.

@codecov
Copy link

codecov bot commented Jan 23, 2020

Codecov Report

Merging #26 into master will increase coverage by 0.63%.
The diff coverage is 95.4%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage    89.6%   90.24%   +0.63%     
==========================================
  Files           5        5              
  Lines         202      246      +44     
==========================================
+ Hits          181      222      +41     
- Misses         11       13       +2     
- Partials       10       11       +1
Impacted Files Coverage Δ
pkg/restapi/vc/controller.go 77.77% <100%> (ø) ⬆️
pkg/restapi/vc/operation/operations.go 92% <95.29%> (+0.33%) ⬆️

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 def1f9f...6f448a8. Read the comment docs.

// TODO create the profile and get the prefix of the ID from the profile issue-47
id = "https://example.com/credentials/1872"
// ID is the identifier for the verifiable credential
ID = "https://example.com/credentials/1872"
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not supposed to be exported, it will be removed anyway

// ID is the identifier for the verifiable credential
ID = "https://example.com/credentials/1872"
// VaultID TODO create the profile and get the prefix of the ID from the profile issue-47
VaultID = "Credentials"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why exported? You can add it to profile after rebase.

}
svc.registerHandler()

_, err = svc.client.CreateDataVault(&operation.DataVaultConfiguration{ReferenceID: VaultID})
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be done during profile creation?

Copy link
Member Author

Choose a reason for hiding this comment

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

@troyronda can you please suggest if its okay to create the data vault during the creation of issuer profile

Copy link
Contributor

Choose a reason for hiding this comment

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

I would have thought so.

Copy link
Contributor

@sandrask sandrask left a comment

Choose a reason for hiding this comment

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

We may want to configure vault in the profile later on.

cmd/vc-rest/go.sum Outdated Show resolved Hide resolved
cmd/vc-rest/startcmd/start.go Outdated Show resolved Hide resolved
cmd/vc-rest/startcmd/start.go Outdated Show resolved Hide resolved
cmd/vc-rest/startcmd/start.go Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
pkg/restapi/vc/operation/operations.go Show resolved Hide resolved
pkg/restapi/vc/operation/operations_test.go Outdated Show resolved Hide resolved
pkg/restapi/vc/operation/operations_test.go Outdated Show resolved Hide resolved
pkg/restapi/vc/operation/operations_test.go Outdated Show resolved Hide resolved
pkg/restapi/vc/operation/operations_test.go Show resolved Hide resolved
@todo
Copy link

todo bot commented Jan 24, 2020

remove the stripping of the string issue-34

https://github.com/trustbloc/edge-service/blob/c7bc1c856df9e3e88f6289f7adcf5a5b16303fcc/pkg/restapi/vc/operation/operations.go#L258-L263


This comment was generated by todo based on a todo comment in c7bc1c8 in #26. cc @talwinder50.

@todo
Copy link

todo bot commented Jan 24, 2020

remove the stripping of the string issue-34

https://github.com/trustbloc/edge-service/blob/c7bc1c856df9e3e88f6289f7adcf5a5b16303fcc/pkg/restapi/vc/operation/operations.go#L281-L286


This comment was generated by todo based on a todo comment in c7bc1c8 in #26. cc @talwinder50.

@talwinder50 talwinder50 requested a review from DRK3 January 24, 2020 22:38
closes: trustbloc#9

Signed-off-by: talwinder.kaur <talwinder.kaur@securekey.com>
@talwinder50 talwinder50 merged commit fc25eb5 into trustbloc:master Jan 25, 2020
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.

store VC credential using EDV Client
4 participants