sip-protocol / sip-protocol/sip-protocol

[M19-IMPL-01] Mina Kimchi proof system integration

Open
#826 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

critical M19-IMPL mina research
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Description

Integrate Mina's Kimchi proof system for succinct verification in SIP.

Why Kimchi?

  • Succinct: Constant-size proofs (~22KB)
  • Recursive: Proofs can verify other proofs
  • Mina-native: Direct integration path
  • Relationship: Zypherpunk hackathon connection

Tasks

  • Research Kimchi proof system architecture
  • Set up o1js development environment
  • Implement SIP circuits in o1js
  • Generate Kimchi proofs for shielded transfers
  • Benchmark proof generation/verification
  • Document integration patterns

Technical Approach

import { Field, Circuit, Proof } from 'o1js'

class ShieldedTransferCircuit extends Circuit {
  @public commitment: Field
  @public nullifier: Field
  
  verify(
    amount: Field,
    blinding: Field,
    spendingKey: Field
  ): Bool {
    // Verify Pedersen commitment
    const expectedCommitment = pedersenHash(amount, blinding)
    commitment.assertEquals(expectedCommitment)
    
    // Verify nullifier
    const expectedNullifier = poseidonHash(commitment, spendingKey)
    nullifier.assertEquals(expectedNullifier)
    
    return Bool(true)
  }
}

Acceptance Criteria

  • Kimchi proofs generated for SIP transfers
  • Proof size < 25KB
  • Verification time < 100ms
  • Documentation complete
  • Integration tests pass

Parent

  • Epic: #825

References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked o1js documentation and Kimchi specification to understand the proof-system architecture and development environment. Then determine how SIP shielded transfers map to the proposed TypeScript circuit and measure proof size and generation and verification times. Done means Kimchi proofs are generated for SIP transfers, meet the stated performance limits, documentation is complete, and integration tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, cryptography
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.