What's new
  • Due to abuse, self-registration is disabled.

    Registration is only required for posting topics or replies. To register, make a request on any of the PIVX social media or chat channels.

    NOTE: To enhance forum security, new accounts that have no posts within a 30-day period are subject to being deleted.

PIVX decentralised voting: CDG proposal review, SHIELD privacy and test results

Gerrald

Active Pivian
PIVX decentralised voting: CDG proposal review, SHIELD privacy and test results

I’m sharing an AI-assisted technical review of the four proposals in the PIVX CDG repository, assessed against today’s PIVX code.

The attached document asks what would actually be required to build permissionless voting that includes SHIELD holders, allows anyone to verify the outcome, and executes approved treasury payments without a privileged governance gate.

It compares Tango, Weighted Voting, Votes-For-All and Pivmetheus, identifies implementation gaps, and sets out a development sequence, estimated effort and consensus requirements.

What was reviewed and tested

The source review covered governance eligibility, ballot serialization, budget finalisation, treasury payment validation, Sapling proofs and nullifiers, wallet witnesses, staking authority and spork controls.

Core source revision bd8a672 was inspected. Runtime testing used the official PIVX v5.6.1 release, with tests from its matching source revision, on an isolated regtest network using dummy funds.

The completed runs included 40 selected unit cases and seven multi-node functional tests, all passing:

Functional testArea exercised
rpc_budget.pyExisting budget RPC behaviour
sapling_wallet_nullifiers.pyShielded wallet nullifier handling
sapling_malleable_sigs.pyShielded signature validation
sapling_wallet_anchorfork.pySapling anchors and fork handling
tiertwo_governance_reorg.pyGovernance behaviour across reorganisations
tiertwo_governance_invalid_budget.pyRejection of invalid budget finalisation
mining_pos_coldStaking.pyCold-staking authority, spending restrictions and block validation
An additional two-wallet exercise successfully shielded funds, transferred shielded funds to another wallet, and confirmed that an ordinary wallet was rejected by the existing masternode-only voting command.

These were tests of existing PIVX behaviour. CDG contains proposal documents; no new CDG voting implementation or private voting circuit was built or tested. A source-build attempt stopped because required development dependencies were unavailable, so the execution results apply to the official release binary.

The main privacy finding

SHIELD payment privacy does not automatically provide private voting.

A voting protocol must prove that someone controls eligible funds that were unspent at a particular snapshot, assign the correct weight, and prevent duplicate voting without exposing their ordinary payment nullifier.

Proving that a note exists in the Sapling commitment tree is insufficient: spent notes remain in that tree. Publishing exact voting weights can also reveal information about holdings, even if the owner’s identity is hidden.

None of the four proposals supplies a complete solution to those requirements.

How the proposals compare

  • Tango offers relatively simple, reward-derived entitlement. However, it excludes passive holders and entirely shielded holdings under current staking rules. It also needs careful separation of actual rewards from returned staking principal.
  • Weighted Voting broadens participation but deliberately gives different influence per coin. Private classification and grouping add considerable complexity, and some constitutional conditions require external information or interpretation.
  • Votes-For-All provides the strongest starting principle: equal weight per PIV. Its proposed separate voting chain introduces additional security and result-verification requirements.
  • Pivmetheus gives serious attention to minority protection and concentration, but its interacting layers, historical weights and account-splitting incentives need substantial modelling and validation.
The recommendation is to adapt VFA’s equal-per-PIV principle into a single-chain PIVX design, with private eligibility, deterministic tallying and automatic bounded settlement. This is a proposed redesign, not VFA implemented unchanged.

What should happen next

The first funded milestone should be an 8–12 week specification and cryptographic prototype demonstrating eligibility, historical unspentness, conserved weight and duplicate prevention, with measured performance and adversarial tests.

After that come chain-state integration, wallet support, tallying, treasury execution, removal of legacy governance overrides, independent reviews and public testnet cycles.

The report estimates 12–18 months for private eligibility with anonymous public choices. Permanently secret ballots without a special decryption committee remain a research-dependent requirement, with a provisional 18–30+ month horizon.

Binding treasury execution would require a coordinated consensus upgrade, likely a hard fork. A development funding vote would not itself activate the protocol.

This is a feasibility and architecture assessment supported by selected execution tests, rather than a complete security certification. Equal-per-PIV voting also remains wealth-weighted; custody, lending and underlying consensus assumptions still matter.

Feedback is particularly welcome on eligibility rules, the required level of ballot secrecy, and whether the proposed first milestone is a useful basis for community discussion.
 

Attachments

  • PIVX-Decentralised-Voting-Audit.pdf
    137.2 KB · Views: 4
What is this slop?

Why has it run tests? Thanks Claude pal, we already know our software works!

Sir, please don't let Anthropic fool you into thinking Claude knows it all.

Let me give one piece of feedback/opinion on the .pdf thats attached which does a good job of explaining and quantifying the situation we are in, while offering close to 0 in the way of progress towards a solution.
Section 2 -- Sporks will be OK, in my opinion, incase governance has an exploit (highly likely if we push with an AI enhanced solution), When I left we still had them, they are centralising, but are they needed? I think yes.
What are your thoughts on the document @Gerrald ? What do you think we should do next, now that we are 'armed' with this information?

This has produced 0 spec, 0 code, its a feasibility test that has not considered an ounce of game theory.
12-18 months for a full spec.... at our current rate of funding developers you realise that would mean paying devs for a whole year with 0 commits coming back to you right? it's also gone straight to fully private voting and we dont actually need that for now, currently masternode voting is NOT private.

AI is a very powerful tool, but you kinda need to have an idea about what you're asking it, otherwise you'll get back stuff like this, which is factually correct but utterly useless and mostly a duplication of past efforts.

Next, I'd say try to get 4 prototypes working on our already established testnet, or spin up a devnet of your own, mostly it will be a duplication of code, so mention that to your agent (saves you loads of tokens - thank me later), I think you should just accept Tango doesnt allow for shielded coins to be included in vote weight (AI wont just change that, you need to be explicit as your agent wants nothing more than to over-engineer something), Build first, then explicitly inform your agent in your own words (less tokens than feeding the document - again thank me later) of the attack surfaces of each one, some of them are trivial and should be ignored, use your own discretion to decide what to fix and what not to.

For me Pivmetheus and Tango are streets ahead of the other 2 so I'd start with them, then host your prototypes somewhere and let the community test them with some random questions. Who will win the premier league? How tall is cryptosi? Shall we pay Borris 20,000 PIV for this work he has done, they have different response types so you will need to consider the pros and cons of each, this report has not done that at all.

Other than that, I love seeing AI enhanced work, we just need to make sure its enhanced and not doing our thinking for us, else we end up with drivel like this.
Also don't feed this into AI, my language style has a wonderful way of being misinterpreted by AI, I express extremes casually (like I'm starving - AI will tell you I'm not), and I use certain terms interchangeably in ways humans understand but your agent will not. So please respond using your own views :)

Onwards

I'll repeat the question -- What are your thoughts on the document @Gerrald ? What do you think we should do next, now that we are 'armed' with this information?
 
What is this slop?

Why has it run tests? Thanks Claude pal, we already know our software works!

Sir, please don't let Anthropic fool you into thinking Claude knows it all.

Let me give one piece of feedback/opinion on the .pdf thats attached which does a good job of explaining and quantifying the situation we are in, while offering close to 0 in the way of progress towards a solution.
Section 2 -- Sporks will be OK, in my opinion, incase governance has an exploit (highly likely if we push with an AI enhanced solution), When I left we still had them, they are centralising, but are they needed? I think yes.
What are your thoughts on the document @Gerrald ? What do you think we should do next, now that we are 'armed' with this information?

This has produced 0 spec, 0 code, its a feasibility test that has not considered an ounce of game theory.
12-18 months for a full spec.... at our current rate of funding developers you realise that would mean paying devs for a whole year with 0 commits coming back to you right? it's also gone straight to fully private voting and we dont actually need that for now, currently masternode voting is NOT private.

AI is a very powerful tool, but you kinda need to have an idea about what you're asking it, otherwise you'll get back stuff like this, which is factually correct but utterly useless and mostly a duplication of past efforts.

Next, I'd say try to get 4 prototypes working on our already established testnet, or spin up a devnet of your own, mostly it will be a duplication of code, so mention that to your agent (saves you loads of tokens - thank me later), I think you should just accept Tango doesnt allow for shielded coins to be included in vote weight (AI wont just change that, you need to be explicit as your agent wants nothing more than to over-engineer something), Build first, then explicitly inform your agent in your own words (less tokens than feeding the document - again thank me later) of the attack surfaces of each one, some of them are trivial and should be ignored, use your own discretion to decide what to fix and what not to.

For me Pivmetheus and Tango are streets ahead of the other 2 so I'd start with them, then host your prototypes somewhere and let the community test them with some random questions. Who will win the premier league? How tall is cryptosi? Shall we pay Borris 20,000 PIV for this work he has done, they have different response types so you will need to consider the pros and cons of each, this report has not done that at all.

Other than that, I love seeing AI enhanced work, we just need to make sure its enhanced and not doing our thinking for us, else we end up with drivel like this.
Also don't feed this into AI, my language style has a wonderful way of being misinterpreted by AI, I express extremes casually (like I'm starving - AI will tell you I'm not), and I use certain terms interchangeably in ways humans understand but your agent will not. So please respond using your own views :)

Onwards

I'll repeat the question -- What are your thoughts on the document @Gerrald ? What do you think we should do next, now that we are 'armed' with this information?
I was just asked to run it through an ai. Was chat gpt aswell. My claude was all used up.
 
Top