-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check that wsts messages are signed by the specified signer_id (#723)
* add coordinator checks * once we have a chain tip, use the correct signer as coordinator * use HashMap::get rather than index directly; replace resulting copypasta with macro * move message authentication into separate fn * pass chain tip report into handle_wsts_message * clippy fixes * use non-panic hashmap access; convert macro to closure * no need to ref when calling hashmap::get * fix weird cargo fmt spacing on tracing call; warn about wrong coordinator then return Ok * resolve scoping issue with warn
- Loading branch information
Showing
4 changed files
with
176 additions
and
5 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