PRION Audit · ABRINDescribe what you need in plain English. The AI will generate, compile, and optionally deploy a privacy-preserving Solidity contract on 0G Chain.
Privacy contracts generated by Division and deployed on 0G Chain.
Division generates contracts using these privacy-preserving patterns:
Submit hash first, reveal later. Prevents front-running and ensures fairness in voting, auctions.
One-time use tokens that prevent double-spending without revealing user identity.
Prove membership in a set without revealing which specific element. Used in mixers.
Conditional transfers that execute only when a secret preimage is revealed.
PRION AUDIT · POWERED BY ABRINTell the AI what privacy contract you need in plain English
Code Agent creates Solidity using privacy patterns (commit-reveal, nullifiers, Merkle)
Hardhat compiles the contract. If errors, Refine Agent auto-fixes them
One-click deploy to 0G Chain (testnet or mainnet)
┌─────────────────────────────────────────────────┐
│ Division Privacy │
│ │
│ User Description │
│ ↓ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Code │───→│ Hardhat │───→│ Refine │ │
│ │ Agent │ │ Compile │ │ Agent │ │
│ └──────────┘ └──────────┘ └──────────┘ │
│ │ ↑ │ │
│ │ └───────────────┘ │
│ ↓ (fix errors loop) │
│ ┌──────────┐ │
│ │ Deploy │→ 0G Chain (EVM) │
│ └──────────┘ │
│ │
│ LLM Providers: │
│ • DeepSeek V3 (primary) │
│ • Groq Llama 70B (fast) │
│ • 0G Compute (primary, decentralized AI) │
│ │
│ Privacy Patterns: │
│ • Commit-Reveal • Nullifiers │
│ • Merkle Trees • Hash Locks │
│ • Access Control • ZK-like Proofs │
└─────────────────────────────────────────────────┘
pip install division-privacy
from division_privacy import generate, PRIVACY_TASKS
# Generate from description
result = await generate(
"Create a private voting contract",
contract_name="PrivateVoting",
provider="deepseek"
)
print(result["code"]) # Solidity source
print(result["compiled"]) # True/False
# Use a preset task
task = PRIVACY_TASKS["mixer"]["description"]
result = await generate(task, "PrivateMixer")
# Clone and install
git clone https://github.com/Acteq1391gp/division-privacy
cd division-privacy
pip install -r requirements.txt
# Generate contract
python -m division_privacy generate \
--name "PrivateVoting" \
--desc "Create a private voting contract" \
--provider deepseek
# Run benchmark (all 25 tasks)
python -m division_privacy benchmark --provider deepseek
# Deploy to 0G
cd contracts
npx hardhat run scripts/deploy.ts --network 0g-mainnet
# Health check
curl http://localhost:3001/api/health
# List examples
curl http://localhost:3001/api/examples
# Generate contract
curl -X POST http://localhost:3001/api/generate \
-H "Content-Type: application/json" \
-d '{
"name": "PrivateVoting",
"description": "Create a private voting contract",
"provider": "deepseek"
}'
# Deploy
curl -X POST http://localhost:3001/api/deploy \
-H "Content-Type: application/json" \
-d '{"name": "PrivateVoting", "network": "0g-mainnet"}'