-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broadcast validators signature and collect QC (BFT-414) (#76)
## What ❔ Implement a mechanism for validators to broadcast their signatures to other nodes in the network and collect them in a new certificate. ## Why ❔ This is essential for signing L1 batches and sending them to L1 for verification. Validators need to broadcast their signatures and gather them in a certificate in case the majority signs the new batch. --------- Co-authored-by: Grzegorz Prusak <[email protected]> Co-authored-by: Ignacio Avecilla <[email protected]> Co-authored-by: Bruno França <[email protected]>
- Loading branch information
1 parent
3e6f101
commit 3f5b4f6
Showing
56 changed files
with
1,970 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: protobuf_compatibility | |
|
||
on: | ||
pull_request: | ||
branches: [ "*" ] | ||
branches: ["*"] | ||
push: | ||
# protobuf compatibility is a transitive property, | ||
# but it requires all the transitions to be checked. | ||
|
@@ -11,7 +11,7 @@ on: | |
# (unless we improve our github setup). | ||
# Therefore on post-merge we will execute the | ||
# compatibility check as well (TODO: alerting). | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
|
||
permissions: | ||
id-token: write | ||
|
@@ -33,17 +33,16 @@ jobs: | |
compatibility: | ||
runs-on: [ubuntu-22.04-github-hosted-16core] | ||
steps: | ||
- uses: mozilla-actions/[email protected] | ||
- uses: mozilla-actions/[email protected] | ||
|
||
# before | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.BASE }} | ||
path: before | ||
fetch-depth: 0 # fetches all branches and tags, which is needed to compute the LCA. | ||
- name: checkout LCA | ||
run: | ||
git checkout $(git merge-base $BASE $HEAD) | ||
run: git checkout $(git merge-base $BASE $HEAD) | ||
working-directory: ./before | ||
- name: compile before | ||
run: cargo build --all-targets | ||
|
@@ -53,7 +52,7 @@ jobs: | |
perl -ne 'print "$1\n" if /PROTOBUF_DESCRIPTOR="(.*)"/' | ||
`find ./before/node/target/debug/build/*/output` | ||
| xargs cat > ./before.binpb | ||
# after | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -67,7 +66,7 @@ jobs: | |
perl -ne 'print "$1\n" if /PROTOBUF_DESCRIPTOR="(.*)"/' | ||
`find ./after/node/target/debug/build/*/output` | ||
| xargs cat > ./after.binpb | ||
# compare | ||
- uses: bufbuild/buf-setup-action@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.