Ancient Contract Grimoires

Battle-tested scrolls of shadow magic, forged in the depths of the Aztec realm. These legendary contracts wield zero-knowledge enchantments to shield your secrets from prying eyes.

5
Sacred Grimoires
10K+
Contracts Forged
99.9%
Victory Rate

Shadow Council Votes

Apprentice

Forge anonymous council chambers where voices remain hidden yet true. These shadow-bound enchantments ensure each vote stays concealed while the will of the realm remains verifiable. Perfect for guild governance, realm elections, and secret conclaves.

Cloaked voting with nullifier ward protection
Verifiable outcomes without revealing allegiances
Swift proof manifestation (~2.1s)
Ritual Duration ~2.1s
Mana Cost ~45K
Seal Essence ~2.1KB
main.nr
fn main(
    vote: Field,
    nullifier: Field,
    commitment: pub Field
) {
    // Prove vote validity
    assert(vote < 3);
    
    // Generate nullifier
    let hash = pedersen_hash([vote, nullifier]);
    assert(hash == commitment);
}

Sealed Bidding Wars

Adept

Orchestrate clandestine auction halls where sealed bids remain shrouded in mystery until the great reveal. These enchantments ensure fair price discovery through shadow magic. Perfect for legendary artifact sales, guild procurement, and treasure vault management.

🔐 Sealed bids with commitment scheme
Time-locked reveal phases
🎯 Fair price discovery mechanism
Proving Time ~3.8s
Gas Usage ~67K
Proof Size ~2.8KB
auction.nr
fn commit_bid(
    bid_amount: Field,
    nonce: Field,
    commitment: pub Field
) {
    let hash = pedersen_hash([bid_amount, nonce]);
    assert(hash == commitment);
    
    // Verify bid is within bounds
    assert(bid_amount > 0);
}
💰

Private Assets

Advanced

Manage confidential asset transfers with hidden amounts and recipients while proving transaction validity. Perfect for private payments, salary distribution, and donations.

👻 Hidden amounts and recipients
🛡️ Balance conservation proofs
🔄 UTXO-based transaction model
Proving Time ~5.2s
Gas Usage ~89K
Proof Size ~3.4KB
transfer.nr
fn transfer(
    input_amount: Field,
    output_amount: Field,
    fee: pub Field
) {
    // Prove balance conservation
    assert(input_amount == output_amount + fee);
    
    // Verify amounts are positive
    assert(output_amount > 0);
}
🔐

Identity Verification

Advanced

Prove identity attributes without revealing personal information using zero-knowledge credentials. Essential for KYC compliance and age verification.

🎭 Selective disclosure of attributes
📜 Verifiable credential proofs
🏢 Compliance-ready implementation
Proving Time ~4.1s
Gas Usage ~71K
Proof Size ~2.9KB
identity.nr
fn verify_age(
    birth_year: Field,
    current_year: pub Field,
    min_age: pub Field
) {
    let age = current_year - birth_year;
    assert(age >= min_age);
    
    // Prove birth year is reasonable
    assert(birth_year > 1900);
}
🏛️

Private DAO

Expert

Anonymous weighted governance system for decentralized organizations. Enables private voting with stake-based weight calculation while maintaining transparency.

⚖️ Weighted voting by stake
🎭 Anonymous participation
🔗 Multi-proposal governance
Proving Time ~6.7s
Gas Usage ~112K
Proof Size ~4.1KB
governance.nr
fn vote_weighted(
    vote: Field,
    stake: Field,
    proof_of_stake: Field,
    nullifier: Field
) {
    // Verify stake proof
    assert(proof_of_stake > 0);
    
    // Calculate weighted vote
    let weighted_vote = vote * stake;
    assert(weighted_vote > 0);
}

Deploy Your First Privacy Contract

Get started with Noircraft's contract templates in just a few commands. Choose a template, customize it, and deploy to the Aztec network.

1

Choose Template

Select from our production-ready contract templates above

cd contracts/templates
2

Customize Contract

Copy and modify the template for your specific use case

cp -r private_voting my_contract
3

Test & Deploy

Test your contract and deploy to the Aztec network

nargo test && nargo prove