4th ZKProof Workshop
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ![](https://i.imgur.com/WeIvTiX.png =150x) **Home Edition #2** # Proposal: Σ-protocols Discussion notes **Moderator:** Eran Tromer **Presenters:** Michele Orrù **Authors:** * Michele Orrù * Stephan Krenn To be presented on 2021-04-19. Resources: * [Latest PDF version](https://docs.zkproof.org/pages/standards/accepted-workshop4/proposal-sigma.pdf) * [Miro whiteboard frame](https://miro.com/app/board/o9J_lJQRFxQ=/?moveToWidget=3074457357481865708&cot=14) * [Additional related links](https://hackmd.io/@workshop4/links) * [Related conversation]() ---- ## Real-time notes _Note taker:_ Sean Coughlin & Eran Tromer & Stephan Krenn PP There are several security concerns that are subtly represented in the implementation of sigma protocols (such as hashing the statement with the randomness as the script when using fiat-shamir for non-interactivity). -Prime fields -Non-Interactivity -Composition Daira shared: https://eprint.iacr.org/2017/540.pdf Mary shared: https://eprint.iacr.org/2012/704.pdf to explain that sigma protocols compiled with Fiat-shamir are simulation sound May be worth focusing on a certain amount of groups / ECs. To chose, we could do - prime-order groups - prime-order gorup abstractions - pairing-friendly groups Safely deriving the challenge is challenging. Actual attacks known on real-world implementations. ProposeD: H(T,Y,gen,curve,ds) with proper separators to avoid length-extension attacks and "chop off at 256bits" (draft-irtf-cfrg-hash-to-curve, STROBE but it's heavyweight) **Challenge-Response** Response: Short (c,s) and Batchable (T,s) *Existing implementations* (Reviewed in the paper) Please let authors know about missing frameworks/implementations *Limitations* Long/complex statements might be a better fit for, e.g., SNARKs than for Σ-protocols. Should discuss application scope. ZK-property still holds in PQ setting, if hash output is sufficiently long. Formally, soundness is maintained also if DLOG is broken (statement becomes meaningless, though) ## Discussion / Questions *Post-Quantum* Assuming hashing algorithms are valid then this scheme should be compatible for 20+ years. Daira: Considered using a Σ-protocol proof of DL equality in Zcash. Did not because there was no standard. Daira: a motivation is faster proving than a SNARK with untrusted setup If the number of witnesses is small, Sigma-protocols are more efficient than SNARKs. In the standard, estimate the size of the Sigma protocol depending on statement to prove/number of witnesses, and compare this with other approaches (SNARKs) Mary: putting the Σ verifier inside a circuit introduces new concerns, e.g., choice of hash function. This would allow opportunity/need for more formalization of existing alrgoritms to compare across schemes, i.e. Poseidon Hash (H R: which is already deployed in Loopring). Carla: threshold cryptography is a possible application Thomas: Why is there a domain separator AND the full instance of the problem? Isn't that redundant? --> Idea of domain separator was to also define the context (e.g., passport vs xxxx). Daira: Use a domain name string, that should make it unique George: I am wary of mandating a particular hash for something as general as this. It seems like in practice people will want to use a hash that already makes sense for the rest of their system. (+1 by Antonie, H R, Kevaundray) Michele: maybe one hash function in the SNARK context and one outside? Daira: that might be too specific in SNARK context, standardizing on one may be an issue in the case of discovered errors in the algorithm and in the inability of one standard to represent the already existing diverse use-cases and implementations. George: Don't over-specialize and over-specify, as certain systems might already use, e.g., SHA2 Daira: just recommend specific hash functions, but do not mandate Peאטודי: It's not an easy problem to make interfaces work for efficiency inside and outside circuits (we're trying to solve this in ark-sponge), but IMO that's the more secure and flexible way AntoineR: Is the plan of this standardisation to meet some security target or to be interoperable to use sigma protocols across many contexts? If the goal is the latter, it seems like we should be simply focusing on data encoding and defining domain/codomains of the functions Michele: possible further topics to be discussed: * Constraint system format and R1CS compatibility: Σ-protocols are stable and easy to deploy. What would be nice is an interface that could be used as an interface between Σ-protocols and other proof systems. There are already other initiatives. Is R1CS the right format? Which other formats could/should be used? Daira: parallel implementation example would allow for easier comparison and standardization. * Shared proof computation: how to distribute the computation of a proof across different parties that have parts of the witness? e.g., frost * Designated verifier proofs: [lack of time for discussion] * Interactive protocols: [lack of time for discussion] Chelsea says: Note that we have a standardization draft for FROST within the CFRG already (as a note to the sigma protocol working group) This is an early example of a less restrictive requirements allowing for optimization in certain cases. What should be the scope? Highlighting the pitfalls, formalize next steps and describe specific schemes including test vectors, etc.? Didactically: * Many SNARKs (e.g., Bulletproofs), especially without trusted setups, are somehow generalizations of Σ-protocols. Thus having Σ-protocols standardized might make it much easier for future proposals. * Seek for harmonization across different approaches. ## Proposed standards-oriented action * Separate document from the community document * Document could start from the current proposal, need to discuss how it needs to be extended * could be referred in the community reference document * Create a working group and a Telegram channel * Schedule a meeting in a few weeks to fix scope and follow-up on the discussions above * We should coordinate with other efforts (e.g. PrivacyPass) to prevent duplication of work

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully