-
Notifications
You must be signed in to change notification settings - Fork 5
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
Svnn ibc proof generation #37
Conversation
…with hs_bitset internal storage
…c bitset class and added comments
…peIO/spring into svnn_ibc_proof_generation
Note:start |
|
||
uint32_t block_num; | ||
|
||
checksum256 finality_mroot; | ||
|
||
time_point cache_expiry; | ||
|
||
uint64_t primary_key()const { return id; } | ||
uint64_t by_block_num()const { return block_num; } | ||
//uint64_t primary_key()const { return id; } |
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.
please remove commented line.
|
||
}; | ||
|
||
TABLE lastproof { | ||
|
||
uint64_t id; | ||
//uint64_t id; |
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.
please remove commented line.
@@ -100,20 +94,20 @@ CONTRACT svnn_ibc : public contract { | |||
} | |||
|
|||
struct quorum_certificate { | |||
std::vector<uint64_t> finalizers; | |||
bls_signature signature; | |||
std::vector<uint32_t> finalizers; |
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 believe we switched to std::vector<uint8_t>
in spring.
if (pairIndex<leaf_count) proof_path.push_back(isLeft); | ||
|
||
leaf_count/=2; | ||
leaf_index=leaf_index / 2; |
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.
why not /=2
to be consistent with line above?
Co-authored-by: Gregory Popovitch <greg7mdp@gmail.com>
…peIO/spring into svnn_ibc_proof_generation
This PR updates the standalone svnn_ibc unit test to include proof generation. Resolves #90.