You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow for a form of vote extensions that are not replay protected #4682
Sometimes, applications need to use the vote extension signature, together with the extension the signature refers to. The current ABCI design (ABCI 2.0) fulfils that requirement. The vote extension is wrapped in a structure CanonicalVoteExtension in order to protect the vote extension from replay attacks. This design frees the application from concern about possible replay attacks (the CanonicalVoteExtension includes chain_id, height, and round).
This mechanism is suitable to most frequent use cases. In order to be able to use the signature for verification, which is exposed in ABCI's PrepareProposalRequest along with the extension itself, the application (or an external process) needs to reconstruct the CanonicalVoteExtension that was used to produce the signature at the first place.
In some cases, the application needs to have the vote extension signed without any wrapping structure. In exchange, it is up to the application to make sure that the non-wrapped extension contains the data needed to prevent possible replay attacks. So the tradeoff is that an extra burden is put on application designers (preventing replay attacks), in exchange for extra flexibility on what is signed (in particular, protobufs are not necessarily used for signing/verification).
In order to preserve backward compatibility, the non replayable vote extension field must be optional, and added to the already existing wrapped vote extension.
Post merge
The PR caused the nightly's to fail. They were fixed with : #4721
Activity
feat(vote extensions)!: support non replay-protected vote extensions (#…