Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new teal opcodes for the MiMC hash function to support Zero Knowledge Proofs #5978

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Commits on Apr 18, 2024

  1. Configuration menu
    Copy the full SHA
    aa86260 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Configuration menu
    Copy the full SHA
    f17fd30 View commit details
    Browse the repository at this point in the history
  2. Make mimc a single opcode

    It's a little ugly to re-use the ec constants, maybe that should be
    changed.
    
    This also changes the opcode to panic on buffers than contain elements
    greater than the curve's modulus.
    
    It's unclear what mimc should do with a zero buffer.  Even gnark seems
    unsure.  Their code says:
    
    ```
    // TODO @ThomasPiellard shouldn't Sum() returns an error if there is no data?
    // TODO: @Tabaie, @thomas Piellard Now sure what to make of this
    /*if len(d.data) == 0 {
    	d.data = make([]byte, BlockSize)
    }*/
    ```
    jannotti committed May 14, 2024
    Configuration menu
    Copy the full SHA
    d44a8a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    45b97c0 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    3979001 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad777e3 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. Configuration menu
    Copy the full SHA
    2de29ea View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Configuration menu
    Copy the full SHA
    1472ed6 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    247d717 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Change MIMC api

    Make the parameters of the MIMC construction explicit.
    Better document its intended use case.
    giuliop committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    809067d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f0e84c9 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Make mimc cost more accurate

    giuliop committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    fa2e748 View commit details
    Browse the repository at this point in the history