About
## Wave 2 submission
Smart Contract Architecture: The Hybrid-Privacy Engine The core innovation of Decision.ZK is the private_decision_v5.aleo program. We solved the "Privacy Paradox" by engineering a strict "Public Cost, Private Action" model. This architecture leverages atomic transitions to gatekeep private state generation, ensuring every private record has a verifiable public cost.
1. Sybil-Resistant Content Creation (create_dilemma) Anonymous networks often suffer from spam due to a lack of reputation. We fixed this by atomically coupling financial commitment with content generation. To mint a private PostRecord (ownership), the user must execute a public transfer to the treasury using transfer_public_as_signer. This creates an economic firewall against bots. Simultaneously, the content_hash is passed as a public input, binding the proposal's terms to the blockchain forever.
2. Blind Voting (vote_private)
On public ledgers, visible votes enable bribery and coercion. Our solution decouples the identity from the intent.
Zero-Knowledge Execution: The user's choice (Boolean) is a private input. The Aleo network verifies the proof of eligibility but never reveals the value (Yes/No) to the public.
Double-Spend Protection: We leverage Aleo's Record model to enforce integrity. The voting transition consumes a specific input record. Since this record is destroyed upon use, it is mathematically impossible to vote twice on the same proposal.
Verifiable Receipt: The output VoteRecord serves as a cryptographic receipt. It proves participation, yet the choice remains encrypted, accessible only to the voter.
3. ZK-Access Control (unlock_content)
Monetizing content usually requires doxxing the buyer. We implemented a decentralized "Pay-to-View" mechanism. Users exchange public credits for a private AccessRecord. This record acts as a "Bearer Token," allowing the frontend to decrypt premium content locally. The creator gets paid, but never learns who accessed the data.
Data Structures & State
struct PostInfo: Stores immutable metadata (content_hash, price, is_premium) for public discoverability.
record VoteRecord: The cornerstone of governance. It stores the owner and the Encrypted Boolean Choice, providing the mathematical guarantee of anonymity.
Why This Matters
Decision.ZK proves that privacy and transparency can coexist:
Money is Transparent: Fees are public, ensuring sustainability.
Opinion is Private: Choices are encrypted, protecting sovereignty.
State is Owned: Users own their Posts and Votes as native Aleo Records, not just entries in a contract mapping.
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





