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

Add ECDSA support to the wallet #1664

Merged
merged 3 commits into from
Apr 6, 2021
Merged

Conversation

someone235
Copy link
Collaborator

@someone235 someone235 commented Apr 6, 2021

Closes #1664

if err != nil {
return nil, nil, errors.Wrap(err, "Failed to generate public key")
return nil, errors.Wrap(err, "Failed to deserialized private key")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo: deserialized -> deserialize

@@ -62,11 +64,13 @@ func (d *Data) toJSON() *keysFileJSON {
EncryptedPrivateKeys: encryptedPrivateKeysJSON,
PublicKeys: publicKeysHex,
MinimumSignatures: d.MinimumSignatures,
ECDSA: d.ECDSA,
}
}

func (d *Data) fromJSON(kfj *keysFileJSON) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please avoid using abbreviations in non-receiver variable names.

@codecov
Copy link

codecov bot commented Apr 6, 2021

Codecov Report

Merging #1664 (8d2dcc3) into v0.10.0-dev (7186f83) will increase coverage by 0.27%.
The diff coverage is 40.47%.

Impacted file tree graph

@@               Coverage Diff               @@
##           v0.10.0-dev    #1664      +/-   ##
===============================================
+ Coverage        59.34%   59.62%   +0.27%     
===============================================
  Files              547      548       +1     
  Lines            21653    21695      +42     
===============================================
+ Hits             12851    12936      +85     
+ Misses            6779     6714      -65     
- Partials          2023     2045      +22     
Impacted Files Coverage Δ
cmd/genkeypair/main.go 0.00% <0.00%> (ø)
cmd/kaspawallet/balance.go 0.00% <0.00%> (ø)
cmd/kaspawallet/config.go 0.00% <ø> (ø)
cmd/kaspawallet/create.go 0.00% <0.00%> (ø)
cmd/kaspawallet/create_unsigned_tx.go 0.00% <0.00%> (ø)
cmd/kaspawallet/keys/create.go 0.00% <0.00%> (ø)
cmd/kaspawallet/keys/keys.go 0.00% <0.00%> (ø)
cmd/kaspawallet/send.go 0.00% <0.00%> (ø)
cmd/kaspawallet/show_address.go 0.00% <0.00%> (ø)
cmd/kaspawallet/sign.go 0.00% <0.00%> (ø)
... and 11 more

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 7186f83...8d2dcc3. Read the comment docs.

@stasatdaglabs stasatdaglabs merged commit d2cccd2 into v0.10.0-dev Apr 6, 2021
@stasatdaglabs stasatdaglabs deleted the add-ecdsa-to-wallet branch April 6, 2021 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants