Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines ERC6506, a proposal for handling incentives tied to DAO governance votes securely and transparently. It establishes a mechanism for offering a reward conditional on voting in a specified direction on a particular proposal, verifying the vote on-chain or off-chain, and paying the reward only when the verification succeeds.

This article translates, summarizes, and expands on the proposal below.

I have also covered a range of other EIPs.

Overview

ERC6506 defines a standard smart contract interface for handling voting incentives in decentralized autonomous organizations (DAOs) transparently and securely. The objective is to offer an incentive in exchange for voting in a particular direction and hold the funds in escrow until the vote can be verified.

Through direct, over-the-counter (OTC) voting incentives, ERC6506 seeks to address inefficient reward distribution and centralized mechanisms in existing protocols.

Motivation

Offering bribes (payments conditional on a particular vote) is already common in protocols such as Curve and Frax. These incentives can also apply to general DAO proposals. Existing approaches, however, have several limitations.

Inefficient distribution

Under the existing distribution proportional to voting weight model, large voters may cast votes late, leaving smaller participants with less than their expected incentive. This can undermine optimal decision-making.

Centralized protocols

Existing bribe protocols such as Votium and Hidden-Hand use incentive distribution structures that require trust in a central administrator, according to the proposal. This conflicts with the decentralized nature of DAOs.

Trust-based transactions

Parties must transact on the basis of mutual trust, and establishing escrow arrangements without a third party can be difficult. This raises the barriers to arranging voting incentives.

Opaque off-chain collusion

When large voters and third parties arrange deals off-chain, the lack of transparency prevents the wider community from monitoring them.

Burdens on individuals and centralization

Receiving bribes involves cumbersome steps such as negotiation, sharing contact details, and creating escrow agreements. Benefits become concentrated among those able to navigate these processes, undermining fairness in voting.

Redistributing bribe proceeds as subsidies

As Vitalik Buterin has suggested, even when an undesirable proposal passes because of bribes, the proceeds may be redistributed to the wider community through mechanisms such as token buybacks. This could increase the cost of improper vote manipulation through bribes while improving returns for recipients.

Specification

Terminology

  • BRIBE / INCENTIVE
    • An arrangement in which User A offers digital assets to User B conditional on voting in a specified direction on a particular DAO proposal.
    • If the condition is not fulfilled, the assets are returned.
  • BRIBER / SENDER / INCENTIVIZER
    • The party offering the incentive (User A).
  • RECIPIENT / VOTER / INCENTIVIZEE
    • The party who votes and receives the reward if the conditions are met (User B).
  • VOTE
    • Refers to account-based governance voting generally.

Core interface specification

The proposal calls for implementing the following smart contract interface, IEscrowedGovIncentive.

IEscrowedGovIncentive.sol
interface IEscrowedGovIncentive {

  struct incentive {
    address incentiveToken;
    address incentivizer;
    address recipient;
    uint amount;
    uint256 proposalId;
    bytes32 direction; //the keccack256 of the vote direction
    uint96 deadline;
    uint96 timestamp;
    bool claimed;
  }

  event incentiveSent(address indexed incentivizer, address indexed token, uint256 indexed amount, address recipient, bytes data);

  event incentiveReclaimed(address incentivizer, address indexed recipient, address indexed token, uint256 indexed amount, bytes data);

  event modifiedClaimer(address recipient, address claimer, bool direction);

  event incentiveClaimed(address indexed incentivizer, address voter, bytes32 incentiveId, bytes proofData);

  event disputeInitiated(bytes32 indexed incentiveId, address indexed plaintiff, address indexed defendant);

  event disputeResolved(bytes32 indexed incentive, address indexed plaintiff, address indexed defendant, bool dismissed);


  //Core mechanism
  function incentivize(bytes32 incentiveId, bytes memory incentiveInfo) external payable;

  function claimIncentive(bytes32 incentiveId, bytes memory reveal, address payable recipient) external;
  
  function reclaimIncentive(bytes32 incentiveId, bytes memory reveal) external;
  
  function verifyVote(bytes32 incentive, bytes memory voteInfo) external view returns (bool isVerifiable, bytes proofData);

  function modifyClaimer(address claimer, bool designation) external;

  //Dispute Mechanism
  function beginDispute(bytes32 incentiveId, bytes memory disputeInfo) external payable;

  function resolveDispute(bytes32 incentiveId, bytes memory disputeResolutionInfo) external returns (bool isDismissed);

}

Struct

The incentive struct holds information about a voting incentive. The voting direction is hashed with keccak256, allowing it to be identified and verified. A hash alone does not necessarily conceal a direction with few possible values.

Functions

  • incentivize
    • Creates and locks an incentive.
  • claimIncentive
    • Claims the reward when the incentive conditions are satisfied.
  • reclaimIncentive
    • Reclaims the funds when the conditions are not satisfied.
  • verifyVote
    • Verifies voting information.
  • modifyClaimer
    • Allows a third party to be designated to claim on behalf of the recipient.
  • beginDispute / resolveDispute
    • Provide a dispute resolution mechanism.

Optional implementation models

ERC6506 proposes three implementation models addressing transparency, confidentiality, and compatibility for incentivized voting. The appropriate model depends on the use case and the DAO's governance practices.

Fully transparent model

In this model, all incentive information (voting direction, reward amount, and recipient) is publicly available at all times. The data is passed to the contract as plaintext calldata and either stored directly or emitted in an event.

This provides substantial transparency, allowing anyone to inspect the incentive terms on-chain, but does not preserve recipient anonymity or voting confidentiality.

Opacity Until Completion (OUC) model

In this model, information such as the recipient, voting direction, and amount remains confidential until the incentive is claimed.

Incentive information is encrypted using the recipient's public key, and the encrypted data is passed to the contract. The contract emits this data in an event, and the recipient can inspect its contents by decrypting it off-chain.

Techniques such as deterministic address generation using the CREATE2 opcode are proposed for private funding arrangements, making it more difficult for third parties to associate transfers.

When the recipient claims the reward, the information underlying the hashed commitment is revealed. The reward is paid if its consistency with the commitment is verified on-chain.

Compatibility with off-chain voting

Many DAOs conduct votes using off-chain platforms such as Snapshot. ERC6506 also considers compatibility with these off-chain voting systems.

Example workflow

  1. User A locks an incentive for User B to vote on a particular Snapshot proposal.
  2. B casts the vote.
  3. After the voting deadline, a challenge window begins.
  4. During this window, A can submit evidence that B did not vote as agreed, such as a signed message indicating the opposite voting direction.
  5. If the challenge succeeds, the funds are returned to A. If no successful challenge is submitted, B can receive the reward under the applicable claim conditions.

The challenge period is intended to prevent B from receiving the reward by signing a vote without broadcasting it.

If B does not vote at all, A cannot directly prove that B did not vote. In that case, A can initiate a special dispute period. Potential approaches to dispute resolution include the following.

  • Adjudication by a trusted third party.
  • Providing a Merkle root with a proof that B is absent from the voter list, using an appropriate authenticated data structure.

The approach depends on the contract implementation.

Struct

incentive

javascript
struct incentive {
  address incentiveToken;
  address incentivizer;
  address recipient;
  uint amount;
  uint256 proposalId;
  bytes32 direction;
  uint96 deadline;
  uint96 timestamp;
  bool claimed;
}

Records voting incentive information. It contains incentive details such as the provider, recipient, amount, proposal ID, hashed voting direction, and deadline.

Parameters

  • incentiveToken
    • The address of the ERC20 token used for payment.
  • incentivizer
    • The address of the user offering the incentive.
  • recipient
    • The intended recipient of the incentive.
  • amount
    • The incentive amount.
  • proposalId
    • The ID of the target proposal.
  • direction
    • A Keccak-256 hash representing the voting direction.
  • deadline
    • The incentive expiration time (Unix timestamp).
  • timestamp
    • The timestamp when the incentive was created.
  • claimed
    • A flag indicating whether the incentive has been claimed.

Functions

incentivize

javascript
function incentivize(bytes32 incentiveId, bytes memory incentiveInfo) external payable

Registers an incentive. The incentivizer registers and deposits the voting incentive in advance. In OUC mode, only part of the data is disclosed.

Parameters

  • incentiveId
    • An identifier, such as a hash, that uniquely identifies the incentive.
  • incentiveInfo
    • Encoded data containing the incentive details.

claimIncentive

javascript
function claimIncentive(bytes32 incentiveId, bytes memory reveal, address payable recipient) external

Claims an incentive. The designated voter uses this function to receive the incentive. The call reverts if the applicable conditions are not satisfied.

Parameters

  • incentiveId
    • The ID of the target incentive.
  • reveal
    • Evidence used to open the commitment.
  • recipient
    • The actual recipient of the reward, which may be a designated third party.

reclaimIncentive

javascript
function reclaimIncentive(bytes32 incentiveId, bytes memory reveal) external

Reclaims an incentive when its conditions are not fulfilled. The incentivizer calls this function to recover funds if the vote does not satisfy the agreed conditions.

Parameters

  • incentiveId
    • The ID of the target incentive.
  • reveal
    • Data used to establish that the conditions were not fulfilled.

verifyVote

javascript
function verifyVote(bytes32 incentiveId, bytes memory voteInfo) public view returns (bool isVerified, bytes memory proofData)

Verifies voting information. Checks whether the designated voter cast a vote that satisfies the incentive conditions.

Parameters

  • incentiveId
    • The ID of the target incentive.
  • voteInfo
    • Information about the vote.

Return values

  • isVerified
    • A Boolean indicating whether the vote satisfies the conditions in this example.
  • proofData
    • Evidence used for verification.

modifyClaimer

javascript
function modifyClaimer(address claimer, bool designation) external

Sets permissions for an authorized claimer. The recipient uses this function to grant or revoke a third party's authority to claim an incentive on their behalf.

Parameters

  • claimer
    • The address of the authorized claimer.
  • designation
    • Specifies whether permission is granted (true) or revoked (false).

beginDispute

javascript
function beginDispute(bytes32 incentiveId, bytes memory disputeInfo) external payable

Initiates a dispute. This function starts an adjudication process to resolve disagreements concerning an incentive.

Parameters

  • incentiveId
    • The ID of the target incentive.
  • disputeInfo
    • Evidence or additional information concerning the dispute.

resolveDispute

javascript
function resolveDispute(bytes32 incentiveId, bytes memory disputeResolutionInfo) external returns (bool isDismissed)

Resolves a dispute. Determines whether funds are returned or paid out based on the conditions of the initiated dispute.

Parameters

  • incentiveId
    • The ID of the target incentive.
  • disputeResolutionInfo
    • Evidence or metadata for resolving the dispute.

Return value

  • isDismissed
    • Indicates whether the dispute was dismissed (true means the defendant prevails).

Events

incentiveSent

javascript
event incentiveSent(address indexed incentivizer, address indexed token, uint256 indexed amount, address recipient);

Emitted when an incentive is sent. The event is emitted when the incentivizer records the voting incentive details in the contract. In OUC mode, the recipient and amount may be represented by zero values.

Parameters

  • incentivizer
    • The address of the user who sent the incentive.
  • token
    • The address of the token used for payment.
  • amount
    • The incentive amount.
  • recipient
    • The designated recipient address.

incentiveClaimed

javascript
event incentiveClaimed(address indexed recipient, address indexed token, uint256 indexed amount, bytes data);

Emitted when an incentive is claimed. In the illustrative event signature below, it records the token and amount transferred to the incentive recipient. The earlier core interface uses a different signature.

Parameters

  • recipient
    • The address receiving the reward.
  • token
    • The token address.
  • amount
    • The claimed amount.
  • data
    • Supplementary information or evidence.

modifiedClaimer

javascript
event modifiedClaimer(address recipient, address claimer, bool direction);

Emitted when an incentive claimer's permissions change. The event is emitted when the recipient adds or removes an authorized claimer.

Parameters

  • recipient
    • The original recipient.
  • claimer
    • The claimer whose permission was added or removed.
  • direction
    • Registration if true, removal if false.

incentiveReclaimed

javascript
event incentiveReclaimed(address indexed incentivizer, address indexed voter, bytes32 incentiveId, bytes proofData);

Emitted when an incentive is reclaimed. It indicates that the incentivizer has recovered funds because the recipient did not meet the conditions.

Parameters

  • incentivizer
    • The address that sent the incentive.
  • voter
    • The recipient who was expected to vote.
  • incentiveId
    • The ID of the target incentive.
  • proofData
    • Evidence that the conditions were not fulfilled.

disputeInitiated

javascript
event disputeInitiated(bytes32 incentiveId, address plaintiff, address defendant);

Emitted when a dispute concerning an incentive is initiated. The event is used when the parties disagree and submit a request for adjudication.

Parameters

  • incentiveId
    • The ID of the target incentive.
  • plaintiff
    • The plaintiff, typically the incentivizer.
  • defendant
    • The defendant, typically the incentive recipient.

disputeResolved

javascript
event disputeResolved(bytes32 incentiveId, address plaintiff, address defendant, bool dismissed);

Emitted when an incentive dispute is resolved. It indicates that an adjudication has determined how the funds should be distributed and that the outcome has been applied.

Parameters

  • incentiveId
    • The ID of the target incentive.
  • plaintiff
    • The party who initiated the dispute.
  • defendant
    • The defendant.
  • dismissed
    • Whether the defendant prevailed (true indicates dismissal).

JSON ABI schema (events)

The following is an example for the illustrative incentiveClaimed signature above. Other events can be represented in the same way; the ABI must match the actual deployed interface.

json
{
  "anonymous": false,
  "inputs": [
    { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" },
    { "indexed": true, "internalType": "address", "name": "token", "type": "address" },
    { "indexed": true, "internalType": "uint256", "name": "amount", "type": "uint256" },
    { "indexed": false, "internalType": "bytes", "name": "data", "type": "bytes" }
  ],
  "name": "incentiveClaimed",
  "type": "event"
}

Sequence diagram

The following sequence diagram illustrates the workflow from creating and claiming an incentive through verification and dispute resolution.

sequenceDiagram
  participant A as インセンティブ提供者(User A)
  participant B as 投票者・受取人(User B)
  participant C as スマートコントラクト
  participant D as 紛争裁定者(任意)

  A->>C: incentivize(incentiveId, incentiveInfo)
  C-->>A: event: incentiveSent

  B->>C: claimIncentive(incentiveId, reveal, B)
  alt 投票内容が一致する
    C-->>B: トークン送付
    C-->>B: event: incentiveClaimed
  else 投票内容が不一致
    A->>C: reclaimIncentive(incentiveId, reveal)
    C-->>A: トークン返還
    C-->>A: event: incentiveReclaimed
  end

  alt 紛争が発生
    A->>C: beginDispute(incentiveId, disputeInfo)
    C-->>C: event: disputeInitiated

    D->>C: resolveDispute(incentiveId, disputeResolutionInfo)
    C-->>C: event: disputeResolved
  end

Additional considerations

Why voting incentives need transparency and decentralization

The proposal assumes that voting incentives, commonly called bribes, are difficult to eliminate from DAOs. As long as users can privately agree on a voting direction off-chain, prohibiting these arrangements outright is impractical.

The issue to address is therefore not simply the existence of these arrangements, but their transparency and the equitable redistribution of proceeds.

Flashbots emerged as a way of making maximal extractable value (MEV) more observable and distributable when eliminating MEV entirely was impractical. Similarly, ERC6506 assumes that bribes exist and seeks to balance fairness and efficiency through an OTC market for voting incentives that is open to participation.

Community responses and equitable access to incentives

Making the parties and terms of incentive arrangements visible on-chain is expected to provide the following benefits.

  • The community can more easily detect unusual voting behavior.
  • Disclosing incentive amounts and voting directions allows other participants to present competing proposals or incentives.
  • Access to compensation may extend beyond a small group of sophisticated participants.

Basic implementation scenario

Consider the following illustrative scenario.

Alice wants to promise Bob $10 if he casts a YES vote on DAO proposal #420, but she does not want to release the funds unless his YES vote can be verified.

To accommodate this type of arrangement, an ERC6506-compliant contract holds the funds in escrow and transfers them only after voting and the applicable verification process are complete. Depending on the verification and dispute resolution model, the system can support both on-chain and off-chain voting (such as Snapshot) without requiring a trusted intermediary for every transaction.

Designs that encrypt information such as the recipient and amount are also permitted to provide confidentiality.

Core requirements: soundness and completeness

The mechanism needs to satisfy the following requirements.

  • Soundness
    • Funds are paid only if the designated voter casts a vote that satisfies the conditions.
  • Completeness
    • A designated voter who fulfills the conditions can successfully claim the funds. Preventing payment to a voter who does not satisfy the conditions is a soundness requirement.

Technical considerations: commitment schemes

Incentive information is fixed in advance as a hashed commitment so the agreed terms cannot be changed during the voting period. Until voting ends, the provider cannot withdraw the incentive, maintaining the intended escrow state.

Potential ethical concerns and the proposal's response

The ethics of paying people to vote in a particular way are contested. ERC6506 is designed to address the consequences of leaving these arrangements unregulated within the protocol, rather than resolve the ethical debate.

Risks of taking no action

  • Flywheel effect Large asset holders continue to capture bribes efficiently, concentrating voting power and potentially undermining the neutrality of DAO governance.

  • Lack of transparency When the motivations and compensation behind votes are hidden, legitimate proposals may fail while inappropriate proposals may pass. The community's preferences may not be represented accurately.

Security considerations

Security depends on the underlying governance system

ERC6506 is designed to interact with an existing governance system. Vulnerabilities in that system can therefore directly affect the ERC6506 mechanism.

Potential risks include the following.

  • Inflation or manipulation of voting power.
  • Tampering with or falsifying voting data.
  • Failure to reconcile off-chain voting results (such as Snapshot).
  • Fraudulent incentive claims caused by incomplete vote verification.

These risks could lead to loss of assets, for example through payment to an incorrect recipient. Security audits of the integrated DAO protocol and its governance logic are therefore essential.

Correct implementation of cryptography

Implementations of this specification may involve the following cryptographic operations.

  • Digital signature verification to check vote information and identity.
  • Zero-knowledge proofs, such as SNARKs.
  • Decryption of encrypted data, such as recipient information in the OUC model.
  • Verification of commitments and their openings.

These operations require technical expertise. Incorrect implementations can cause serious problems, including loss of confidentiality, fraudulent claims, or signature reuse (replay attacks).

The following measures are recommended.

  • Use established, well-tested cryptographic libraries.
  • Write reusable signature verification logic for both off-chain and on-chain operations, with specifications that external parties can reproduce.
  • Prevent replay attacks by ensuring signature uniqueness through mechanisms such as nonces and proposal IDs.
  • Design robust key management and decryption verification procedures for the Opacity Until Completion model.

Implementation considerations

The standard defines a framework, leaving concrete verification methods and implementation decisions to individual protocols. Security therefore depends on the quality of each project's implementation.

Without sufficient verification and security safeguards, the intended voting incentive model may fail and distort DAO governance.

Citation

Josh Weintraub (@jhweintraub), "ERC-6506: P2P Escrowed Governance Incentives [DRAFT]," Ethereum Improvement Proposals, no. 6506, February 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-6506.

Conclusion

This article covered ERC6506, a proposal for handling incentives tied to DAO governance votes securely and transparently. I hope you found it useful.

If you have any questions, feel free to contact me via Twitter DM.

Twitter @cardene777

I also publish on other platforms, which you can find below.

https://chaldene.net/