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

Simplify library interfaces a bit #114

Merged
merged 4 commits into from
Apr 24, 2024
Merged

Simplify library interfaces a bit #114

merged 4 commits into from
Apr 24, 2024

Conversation

AnnaShaleva
Copy link
Member

Just something I have on hands left after Neo X dependencies upgrade.

dbft requires PublicKey to be equatable, no marshaller or verification
should be used by dbft library. Also, it's not very user-friendly to
perform public key comparison via marshalling, and thus, this code is
refactored.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva AnnaShaleva added this to the v0.3.0 milestone Apr 24, 2024
@AnnaShaleva AnnaShaleva added the enhancement Improving existing functionality label Apr 24, 2024
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 10.00000% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 63.31%. Comparing base (ca4f328) to head (8e00eb3).
Report is 4 commits behind head on master.

Files Patch % Lines
internal/consensus/consensus.go 0.00% 5 Missing ⚠️
internal/crypto/ecdsa.go 0.00% 2 Missing ⚠️
internal/simulation/main.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #114      +/-   ##
==========================================
+ Coverage   62.72%   63.31%   +0.58%     
==========================================
  Files          27       27              
  Lines        1532     1510      -22     
==========================================
- Hits          961      956       -5     
+ Misses        504      489      -15     
+ Partials       67       65       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Either WithKeyPair or WithGetKeyPair should be kept. The latter is more
general, thus I'm keeping it and removing the first setter.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
dbft package itself doesn't need anything from PublicKey. It's the user
who is responsible for public keys comparison and WithGetKeyPair
callback implementation.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
…ation

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
identity.go Show resolved Hide resolved
@roman-khimov roman-khimov merged commit 6abc124 into master Apr 24, 2024
12 of 13 checks passed
@roman-khimov roman-khimov deleted the light-pubkey branch April 24, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants