-
Notifications
You must be signed in to change notification settings - Fork 3
#80 implementation for proof of ownership #90
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
Conversation
Refactored signature.go: changed method name from SignBlock to SignByNode (to generalise message that are signed using node pri key) Added GetBlockHash to blockUtil.go Refactored nodeAdminCoreService.GenerateProofOfOwnership: now reusing methods from other service and packages to reduce duplication of business logic added helpers interface and injected into NodeAdmin stuct to make its methods mockable refactored unit test for GenerateProofOfOwnership
refactored ValidateProofOfOwnership method to reuse already (previously) implemented methods
moved all helper (mockable) methods to NodeAdminServiceHelpersInterface fixed bug in GetSize for accountType (min size in bytes for an integer in protobuf v3 is 4, so we cannot have 2 or 1 byte fields)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've refactored directly the code fixing a few things (all written in git commit log)
all tests pass and for me this branch is ready to be merged with develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
please let's know if changes are updated, [excluding the marshal one 👍 ] |
…in.go fixed relative unit tests
…efactored relative code/tests
…w we mock direclty the blockservice, which is the one where queries needed to be mocked)
Description
implementation for proof of ownership as stated in #80
Breakdown
Reference Issue
Close #80