Nam Ngo
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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 New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Public Verifiable MPC ## Introduction Secure Multiparty Computation (MPC) allows $n$ parties $P_1, \ldots, P_n$ to securely evaluate a joint function $f(x_1, \ldots, x_n)$ while keeping the secret input $x_i$ private to its owner $P_i$. MPC comes with two main flavors of security, namely *Semi-honest* and *Active Security*: - *Semi-Honest* (SEM} only guarantees security if the adversary acts according to the protocol, i.e., one will not deviate from the protocol but only tries to break privacy from the MPC transcript that is available to it; - *Active Security* (ACT) is a stronger security setting than SEM that guarantees the security of the MPC protocol even if the adversary acts arbitrarily. Generic MPC is enabled through two approaches: Secret-Sharing (SS) and Garbled-Circuit (GC). We focus on the latter due to its attractive property of constant round complexity (where round complexity is an important factor for blockchain model due to bottleneck in block generation time.) ## Efficiency of Actively Secure Garbled Circuit. ACT for GC is trivially available through the usage of Zero-Knowledge-Proof, yet even with optimizations, it is necessary to prove a statement with 19 clauses conjunction per gate. Cut-and-Choose is another approach for ACT in which the Garbler prepares $k$ circuits in total, and the Evaluator can choose $t$ to test and only accepts if all $t$ circuits are valid. Yet the preparation of many circuits and the testing for validity yield concrete inefficiency and become unreasonable when the circuit size is large. Another approach is through Authenticated Garbling, which will be our focus due to its efficiency compared with the previous two. Yet, these classical flavors of security only take into consideration the parties that participate in the MPC protocol itself, i.e., only $P_1, \ldots, P_n$ can verify the security of the MPC protocol. # Verifiable MPC. We consider a somewhat *added-on* setting, in which an external party, let us call it Verifier, can verify the security of the MPC protocol, and we call protocols in this setting Verifiable MPC (V-MPC). The security verification can come in 4 flavors: - *Designated Verifier* (DV-MPC): A single Verifier who potentially has some private state can verify the protocol execution to be secure. - *Collaborative Verifiable* (CV-MPC) A set of Verifiers who potentially have some private states can jointly (according to some access structure) verify the security of the protocol (CV-MPC can be considered as a thresholdized version of DV-MPC.) - *Multi Verifier* (MV-MPC) A set of Verifiers who potentially have some private states can individually verify the protocol's security. Such verification flavor is also called *Crowd-Verifiable MPC*. - *Publicly Verifiable* (PV-MPC) Any external Verifier without any secret state can verify the security of the protocol (possibly with aid from some Common Random String CRS). We focus on the last setting, which is also the strongest one: Publicly Verifiable MPC. Its motivation is to run an MPC protocol among $n$ parties, and the output will be acknowledged by the vast external verifiers of a blockchain consensus network. ## Verifiability vs Auditability. Disregard the verifiability flavor, to make an MPC verifiable, there are two approaches: - *Verifiable Output* (VO) where the output of the MPC is made verifiable, while - *Auditable Transcript* (AT) where the transcript of the MPC is made verifiable. We distinguish that the VO flavor is independent while the VT one depends on the MPC protocol. > Let us consider the **Shuffle** functionality. The **Shuffle** functionality runs between $n$ parties $P_1, \ldots, P_n$ each with a secret input $x_1, \ldots, x_n$ starting as an ordered list of $O_0 = \{x_1, \ldots, x_n\}$. The functionality runs in $n$ rounds, in each round $R_i$, party $P_i$ sends a permutation $\pi_i$ to **Shuffle** in which the functionality will apply to obtain $O_i = \pi_i(O_{i-1})$. Finally, the functionality outputs $O_n$. *Verifiability* VO only asks for the quality of the output, i.e., that $O_{n}$ is a permutation of $O_0$. In contrast, *Auditability* VT asks for the correctness of the process, i.e., that $O_{n}$ is a permutation of $O_0$ through a series of permutation $\pi_1, \ldots, \pi_n$. ### Verifiable MPC For VO-MPC, we can leverage Collaborative Zero-Knowledge Proof (co-ZKP, between $P_1, \ldots, P_n$) to produce a ZK proof that the output $y = f(x_1, \ldots, x_n)$ while keeping the $x_1, \ldots, x_n$ private to $P_1, \ldots, P_n$. In the literature, co-ZKP can be achieved by thresholdizing any existing ZKP, demonstrated by Collaborative Zero-Knowledge Succinct Argument of Knowledge (co-zkSNARKs). Yet, there are potential Co-ZKP based on other ZKP such as: MPC-In-The-Head (MPCitH: seminal work IKOS07, Other MPCitH techniques, VOLE-IZK (DVZK with fast prover time and small memory), or VOLE-In-The-Head (a.k.a the public coin Verifier version of VOLE-IZK). DV-MPC can leverage any private coin Verifier (Co-) ZKP, CV-MPC is achievable through thresholdizing the Verifier state in the private coin Verifier (Co-) ZKP, MV-MPC can be obtained by running multiple DV-MPC instances, and PV-MP can utilize any public coin verifier ZKP. Fortunately, all existing Co-ZKP is constant rounds protocols. Thus, the round complexity of the VO-MPC only depends on the underlying MPC protocol, i.e., a Secret-Sharing-based (SS) VO-MPC will yield linear round complexity while a Garbled-Circuit-based (GC) VO-MPC will have constant-round complexity. ### Auditable MPC For AT-MPC, we need the transcript auditable while keeping the privacy of the protocol execution. In general, for both SS-based and GC-based AT-MPC, the transcript can be made auditable through Additively-Homomorphic Commitment (COM, such as Pedersen) or Verifiable MAC (V-MAC) on each computation step. If the COM or V-MAC in the AT-MPC is publicly verifiable, then we have PV-MPC. COM-based has worse concrete efficiency than V-MAC-based AT-MPC due to the first operating on groups while the latter only operates on rings. One can consider ACT a special case of DV/MV AT-MPC where the Verifier is a party in the MPC protocol. Hence, if the ACT mechanism can be publicly verifiable, we will also obtain PV-MPC. As in VO-MPC, an SS-based AT-MPC will yield linear round complexity, while a GC-based VT-MPC can potentially yield a constant round complexity. This last one is also our main research question: :::info Can we pick a GC-based protocol that is actively secure (such as WRK17, KRRW18, DILO22, or CWYY23) and make such active security public verifiable and obtain constant round publicly auditable MPC? ::: ## An attempt with SNARK-ing AES For PV-MPC, we conducted benchmarking of proving AES128 encryption to test feasibility of the approach where garbled circuit execution (garbling and evaluation) is proven by zkSNARKs. AES128 is a core building block for efficient garbled circuit implementation but is thought to be inefficient to handle inside zkSNARKs at the time. We tried to test if the state of the art lookup argument can improve that to somewhat feasible efficiency. The circuit is constructed mostly using 8bit-wise operations lookups and s-box lookups and column, row shifts. You can find the code [here](https://github.com/tkmct/halo2-aes). The benchmark is taken using different SNARK backend implemented on halo2, the most prominent one was hyperplonk+logup which we could generate proofs for 6k fixed key AES128 calls in 2 minutes. The result showed that this approach is far too inefficient ATM for real usecase. We stopped working on this approach because there were no alternative practical implementations for efficient SNARK/STARK on whicn bit/bytes operations can be handled very efficiently at the time. Although, recently we have seen more and more efficient STARK protocol for smaller field proposed. Those protocols might be the savior for this approach in near future. ## Making VOLE-GC Publicly Auditable We picked the basic blueprint of the actively secure Garbled Circuit protocol, namely, WRK17, which relies on V-MAC. We then adopted VOLEitH (with SoftSpokenOT) to make the utilized V-MAC public auditable. We obtained a Constant Round Publicly Auditable Garbled Circuit Protocol with inherited security and efficiency from both WRK17 and VOLEitH. :::danger There are potential improvements in KRRW18, DILO22, or CWYY23, but we see non-trivial composition of such improvements and VOLEitH, for example they may require Learning-Parity-With-Noise assumption while SoftSpokenOT is incompatible with LPN. We leave such composition to future work. ::: Please refer to our formal technical report [here](https://github.com/Crazy-Cryptographic-Buddies/report-secure-end-to-end-publicly-auditable-2pc/blob/main/PA-2PC-draft-2024-08-30.pdf) for details. > This is an informal [dumped log](https://hackmd.io/XIV68jPTT1evlhu_ljuPSg) for quick understanding.

    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