Skip to content

Allow for a form of vote extensions that are not replay protected #4682

Closed

Description

@sergio-mena

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

  1. added
    abci
    on Dec 17, 2024
  2. added a commit that references this issue on Dec 20, 2024
    a95c2d1
  3. added this to the 2024-Q4 milestone on Dec 23, 2024
  4. moved this from Todo to Done in CometBFTon Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

abci

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions