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

crypto: API modifications #5236

Merged
merged 4 commits into from
Aug 13, 2020
Merged

crypto: API modifications #5236

merged 4 commits into from
Aug 13, 2020

Conversation

tac0turtle
Copy link
Contributor

@tac0turtle tac0turtle commented Aug 13, 2020

Description

This PR aims to make the crypto.PubKey interface more intuitive.

Changes:

  • VerfiyBytes -> VerifySignature

Before Bytes() was amino encoded, now since it is the byte representation should we get rid of it entirely?

EDIT: decided to keep Bytes() as it is useful if you are using the interface instead of the concrete key

Closes: #XXX

@tac0turtle tac0turtle self-assigned this Aug 13, 2020
@tac0turtle tac0turtle added the C:crypto Component: Crypto label Aug 13, 2020
@codecov
Copy link

codecov bot commented Aug 13, 2020

Codecov Report

Merging #5236 into master will increase coverage by 0.57%.
The diff coverage is 70.58%.

@@            Coverage Diff             @@
##           master    #5236      +/-   ##
==========================================
+ Coverage   60.83%   61.41%   +0.57%     
==========================================
  Files         203      198       -5     
  Lines       20446    23083    +2637     
==========================================
+ Hits        12439    14176    +1737     
- Misses       6938     7657     +719     
- Partials     1069     1250     +181     
Impacted Files Coverage Δ
crypto/crypto.go 0.00% <ø> (ø)
p2p/conn/secret_connection.go 83.49% <0.00%> (ø)
consensus/state.go 72.74% <66.66%> (+0.23%) ⬆️
types/evidence.go 65.50% <66.66%> (ø)
types/validator_set.go 88.22% <66.66%> (ø)
crypto/ed25519/ed25519.go 42.59% <100.00%> (ø)
tools/tm-signer-harness/internal/test_harness.go 62.06% <100.00%> (ø)
types/vote.go 89.18% <100.00%> (ø)
types/tx.go 89.65% <0.00%> (-3.45%) ⬇️
consensus/reactor.go 74.68% <0.00%> (-0.69%) ⬇️
... and 119 more

@tac0turtle tac0turtle marked this pull request as ready for review August 13, 2020 10:02
@tac0turtle tac0turtle added the S:automerge Automatically merge PR when requirements pass label Aug 13, 2020
@mergify mergify bot merged commit 9e98c74 into master Aug 13, 2020
@mergify mergify bot deleted the marko/crypto_API branch August 13, 2020 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:crypto Component: Crypto S:automerge Automatically merge PR when requirements pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants