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

feat: Create trustbloc DID cli #190

Merged
merged 1 commit into from
Nov 3, 2020
Merged

feat: Create trustbloc DID cli #190

merged 1 commit into from
Nov 3, 2020

Conversation

fqutishat
Copy link
Contributor

closes #29

Signed-off-by: Firas Qutishat [email protected]

@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #190 into master will increase coverage by 0.52%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #190      +/-   ##
==========================================
+ Coverage   87.37%   87.89%   +0.52%     
==========================================
  Files          22       22              
  Lines         895      909      +14     
==========================================
+ Hits          782      799      +17     
+ Misses         62       60       -2     
+ Partials       51       50       -1     
Impacted Files Coverage Δ
pkg/did/client.go 85.71% <90.90%> (+4.20%) ⬆️

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 dc16228...1c85d47. Read the comment docs.

@fqutishat fqutishat force-pushed the 29 branch 4 times, most recently from 1622028 to e3b9a8d Compare November 2, 2020 19:21
return nil, err
}

svcData, err := ioutil.ReadFile(serviceFile) //nolint: gosec
Copy link
Contributor

Choose a reason for hiding this comment

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

Is is practical for user to provide two files (one for services and one for public keys) in order to create did? This might be ok @troyronda

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems odd to me.

cmd/did-method-cli/sample/publickeys.json Outdated Show resolved Hide resolved
cmd/did-method-cli/sample/publickeys.json Outdated Show resolved Hide resolved
cmd/did-method-cli/sample/publickeys.json Outdated Show resolved Hide resolved
cmd/did-method-cli/sample/services.json Outdated Show resolved Hide resolved
test/bdd/fixtures/did-keys/publickeys.json Outdated Show resolved Hide resolved
@fqutishat fqutishat force-pushed the 29 branch 3 times, most recently from bc47ebd to e6b69df Compare November 3, 2020 11:29
@fqutishat fqutishat requested a review from sandrask November 3, 2020 11:29
@fqutishat
Copy link
Contributor Author

@sandrask @troyronda @bstasyszyn I create task to refactor public key struct #191

@fqutishat fqutishat force-pushed the 29 branch 6 times, most recently from 7b8e4d9 to 60287da Compare November 3, 2020 12:10
}
} else {
pubKey, err = publicKeyFromPEM([]byte(keyString))
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

you could have error checking outside of if

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't understand what I need to change here

cmd/did-method-cli/sample/createdid/publickeys.json Outdated Show resolved Hide resolved
@fqutishat fqutishat force-pushed the 29 branch 2 times, most recently from 5d3e2f1 to 8a890dc Compare November 3, 2020 14:49
closes trustbloc#29

Signed-off-by: Firas Qutishat <[email protected]>
@fqutishat fqutishat merged commit 4319a02 into trustbloc:master Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create trustbloc DID cli
5 participants