[DO NOT MERGE] fix: Added signature_share_node for mitigating rogue attacks #145
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
addresses #120
This adds in a new
signature_share_node
endpoint to share the signature of the nodes signed message:NEAR
. The leader node will aggregate all these signatures and send them out along side the public keys to each sign node, and each sign node will do their separate verification before accepting the public keys as true set of public keys.Probably need to store these signatures to GCP as well, just so we can do the verification again when it gets restored, but will leave that for later if needed and if this design is good enough
Also had to change the
accept_pk_set
endpoint request to take in thesignatures
, so hopefully upgrading isn't a huge issue for partners