-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently the NodeConfig for PBft makes it non-optional to be a core node, with corresponding credentials. This patch makes it optional so we can have nodes without core node credentials. We introduce a PBftIsLeader type that holds the various keys needed for core nodes. We make the NodeConfig contain a Maybe one of these. We take advantage of the IsLeader "proof" type and for PBft we make it carry the PBftIsLeader. Of course this does not prove that n `mod` m = i but it does at least hold all the credentials which are needed for signing blocks. So it makes a lot of sense for checkIsLeader to return these credentials. The rest is just following through the consequences.
- Loading branch information
Showing
5 changed files
with
56 additions
and
40 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
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