Commit 1416f9b
feat: add
* Add Nix support
* Add `typos`
* Apply copilot suggestions
* Update Cargo.lock
* Add Dockerfile and .dockerignore
* Add placeholder executable
* Include cargo tools in Nix
* Remove the need for nightly
* Fix checks on placeholder app
* Adjust target name
* Build only the CLI
* Rely on system libraries
- Cannot set up nightly without breaking stuff
* Remove duplicated inputs
* Use `rust:1.89` and `debian:trixie-slim` as images
- Bigger image (80 mb vs 14 mb)
* Use bookworm instead of trixie
* Formatting
* Revert changes to `rustfmt.toml`
* Revert changes to `pre-push`
* Expose port 3030
* Initial qbft impl
- Missing public `Run` method
* Accept references to `I`
* Define errors as structs
* Initial qbft implementation
* Rename SomeMsg/Msg
* Reduce cloning when ref is enough
* Complete `Run` method
* Use crossbeam for channels
* Fix `q_commit`
- Wrap in Option
- Make classify return None instead of empty vec
* Initialize remaining state elements
* Renaming
* Use `select!` macro
* Apply clippy suggestions
* Match reference project structure
* C
* Add qbft module docs
* Run `d.log_*` methods
* Match visibility modifiers
* Match module docs
* Regen `Cargo.lock`
* Move dependency to workspace
* Fix pre-push checks
- Code sorting
* Revert docs change
* Fix typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix equality comparison with `Default`
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add internal tests
* Add `as_any` to `SomeMsg` trait to allow downcasting
* Make structs thread safe
* Complete `test_qbft` function
* Add `happy_0` test
* Include `rand`
* Disable test due to deadlock
* Sort deps
* Run formatter
* Apply clippy suggestions
* Fix wrong check
- Ensure `ppj_cache` is None only
* Use single `is_leader` function
* Simplify imports
* Log when all resuts are received.
* Propagate cancellation
Use `cancellation` crate
* Fix deadlock
- Main test thread was not exiting due to wrong scope
* Match original log messages
* Add working tests
* Port remaining test cases
* Add `duplicate_pre_prepare_rules` test
* Formatting
* Mutate `input_value`
Fixes multiple test cases
* Avoid f64 for time
* Add `fake_clock`
* Sort deps
* Sort module declaration
* Apply Copilot fixes/suggestions
* Use `fake_clock`
Speeds up tests but does not fix concurrency issues
* Add `cargo nextest`
* Update CI to use `nextest`
* Test for clock cancellation
* Update comments
* Use workspace `rand`
* Improve retries for flaky tests
* Apply copilot comment suggestions
* Use explicit error enum
* Remove `anyhow`
* Small suggestions
* Add `Drop` impl for `FakeClock`
* Fire and forget in `bcast`
* Ignore all tests
- Flaky tests
* Remove nextest
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>qbft module (#18)1 parent e37d67b commit 1416f9b
9 files changed
Lines changed: 2324 additions & 27 deletions
File tree
- crates
- charon-core
- src
- qbft
- charon-crypto
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
| 30 | + | |
28 | 31 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 32 | | |
34 | | - | |
35 | 33 | | |
36 | | - | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | | - | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
| |||
19 | 30 | | |
20 | 31 | | |
21 | 32 | | |
22 | | - | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
0 commit comments