-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(comms)!: add signature to peer identity to allow third party ide…
…ntity updates (#3629) Description --- - add signature to peers with update timestamp to allow updates - update peer sync, identity, discovery and join protocols to validate signature (backward compatible) - signature is optional, if not provided the peer addresses is not updated - add migration for peer db - remove old migrations - add some unit tests - include PR #3624 - fix: use of `from_timestamp` on unvalidated data can cause a panic, replaced with `from_timestamp_opt` - decouple comms cipher key from wallet and implement identity signing after loading (👁️ 🙏 @philipr-za ) - add list connected public keys to FFI (👁️ 🙏 @StriderDM) - update cucumber tests as needed Compatibility PeerDB: All changes are forward compatible, once upgraded the previous peer db cannot be used. DhtProtocol: fully compatible, identity signature is optional and will have the same effect as the current protocol if not provided Identity Protocol: fully compatible, identity signature is optional but SHOULD be provided once upgraded NodeIdentity json file: will be updated on node startup Motivation and Context --- Allow address changes to be securely propagated through the network by third party peers How Has This Been Tested? --- Some basic unit tests Compatibility: manually with two upgraded base nodes connecting to existing weatherwax nodes, console wallet tested
- Loading branch information
Showing
86 changed files
with
1,663 additions
and
543 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.