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

IF: updated qc_chain to use bls_public_key as finalizer id, completed internal wiring for signing + verification #1616

Merged

Conversation

systemzax
Copy link
Member

@systemzax systemzax commented Sep 10, 2023

Resolves #1610 and #1626.

@heifner heifner changed the title updated qc_chain to use bls_public_key as finalizer id, completed internal wiring for signing + verification IF: updated qc_chain to use bls_public_key as finalizer id, completed internal wiring for signing + verification Sep 11, 2023
libraries/hotstuff/chain_pacemaker.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/chain_pacemaker.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/chain_pacemaker.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp Outdated Show resolved Hide resolved
libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp Outdated Show resolved Hide resolved
libraries/hotstuff/qc_chain.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/test/test_hotstuff.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/test/test_hotstuff.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/test/test_pacemaker.cpp Outdated Show resolved Hide resolved
libraries/libfc/test/test_bls.cpp Outdated Show resolved Hide resolved
@greg7mdp

This comment was marked as outdated.

@greg7mdp

This comment was marked as outdated.

@arhag arhag linked an issue Sep 12, 2023 that may be closed by this pull request
…ded finalizer_count parameter to quorum_certificate constructor, and resize hs_bitset to the expected size
…of the active finalizer set. Improved test to reflect expected operational conditions better
@systemzax

This comment was marked as outdated.

@greg7mdp

This comment was marked as outdated.

libraries/hotstuff/qc_chain.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/qc_chain.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/qc_chain.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/qc_chain.cpp Outdated Show resolved Hide resolved
@@ -3,7 +3,7 @@
#include <eosio/hotstuff/base_pacemaker.hpp>
#include <eosio/hotstuff/qc_chain.hpp>

#include <eosio/chain/finalizer_set.hpp>
//#include <eosio/chain/finalizer_set.hpp>
Copy link
Member

Choose a reason for hiding this comment

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

This should be removed. But finalizer_set needs to be forward declared.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did remove the commented out line, but I'm not sure if/how the forward declaration would be used, since finalizer_set is included in the base_pacemaker.hpp header.

static finalizer_set create_fs(std::vector<std::string> keys){

std::vector<fc::crypto::blslib::bls_private_key> sks;
//std::vector<fc::crypto::blslib::bls_public_key> pks;
Copy link
Member

Choose a reason for hiding this comment

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

remove

libraries/hotstuff/chain_pacemaker.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp Outdated Show resolved Hide resolved
libraries/hotstuff/qc_chain.cpp Outdated Show resolved Hide resolved
libraries/hotstuff/test/test_hotstuff.cpp Outdated Show resolved Hide resolved
@systemzax systemzax force-pushed the internal_wiring_of_finalizers_in_qc_chain branch from ac6400a to 4ffc264 Compare September 25, 2023 17:58
@systemzax systemzax merged commit b97c279 into hotstuff_integration Sep 27, 2023
22 checks passed
@systemzax systemzax deleted the internal_wiring_of_finalizers_in_qc_chain branch September 27, 2023 20:12
@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: MESSAGES
summary: Improved the hs_vote_message by updating to a more precise data structure for serialization and by using bls_public_keys as the finalizer identifier rather than the name/description.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants