Oskar
    • 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
    • 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 Versions and GitHub Sync Note Insights 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Mopro planning at Devconnect 2023 **Let's accelerate and make more proofs client-side**. This document: last few months, vision, ideal UX for app devs, next 6m, questions. ## mopro last few months tldr: proving on mobile works, it is fast and useful enough for building zk apps (like pocket-aadhaar). experience is still hacky, it can be faster and we can do more to meet users where they are. See Oskar's talk at ProgCrypto for more context, slides [here](https://docs.google.com/presentation/d/1afIEgm8oYRvteWxUd04CcMOxChAiHaD55d5AKd0RkvY/edit?usp=sharing). ## mopro vision I want us to create the Foundry for client side proving. > Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust. ([Github](https://github.com/foundry-rs/foundry)) **Mopro is a fast, portable and modular toolkit for ZK app development written in Rust.** Was: Morpo is a toolkit for making proving on mobile simple (and fast). What does this mean? Mopro stands for **mo**bile **pro**ving, but it also stands for **mo**re **pro**ofs. Developers want to use a variety of proof systems/tooling (Circom, Halo 2, Nova/Folding Schemes, Noir, etc) and to allow users to create and verify proofs on a variety of platforms (iOS, Android, Web, PWA, Desktop). It should be portable (work anywhere), modular (use whatever part of the stack you care about) and fast (use best native performance where we have access to it). (It should also be easy to integrate into your existing project). ## Towards a great UX for app developers To me a great CLI for mopro, similar to what exists in Foundry, would be the ideal UX for developers. We already have an ad hoc one today that is a bit all over the place with cargo commands, shell scripts to update bindings etc. I'm imagining you can take actions such as: ``` # Initialize a project with support for multiple platforms # Optional arguments like --example, --platform, --architecture, --module # (Find better name vs language; (proof-)system? adapter?) mopro init --platform ios,android,pwa,desktop --language circom <MyProject> ## Build dependencies mopro build --plaform ios,android,pwa # Update bindings with new API mopro update --platform ios,android,pwa # Run tests mopro test --platform ios --test circom-rsa ``` Talking to a few projects, it seems like some are hesitant on time investment for a mobile native app and not sure if or when they need it. It can be a significant commitment. We need to reduce this uncertainity and provide a progressive path to onboard people. The way to do this is to (1) show how easy it is to make use of mopro and make an app, including with things like Webview (2) provide a progressive path for app developers. A progressive path might look something like: - Desktop/CLI PoC -> PWA (service workers in background, offline support) -> Webview on native -> React Native -> native Swift/Kotlin app We already have basic "desktop support" in the form of proving and verifying Circom circuits from Rust (used for testing of Rust API), so exposing this wouldn't be too difficult. It'd also get us one step closer to not having rely on JS tooling for everyhing (e.g. see Circom dependency resolution issues). ### (Circom dependency management) This came up in conversations with Pierre and seems related so adding it here. Problem: Circom dependency management isn't great. Conflict resolution of duplicate template is a problem, and so is ensuring the use of audited circuits. Solution: Improving conflict resolution/insight and making it clear what circuits have been audited (a la OpenZeppelin) would help address this problem. This relates to how we reconcile DevEx with security, especially as we start to deploy this technology in the real world and more and more developers join the space. ### Not reinventing the wheel To clarify: we don't want to re-invent the wheel. Some good tooling obviously exists already, and when that's the case we should simply re-use that. This can be as simple as wrapping existing commands in a more intuitive and consistent interface (people already do this with ad hoc Circom shell scripts). In other cases it might mean more work, such as circom-compat, circom-witness-rs, or what p0tion did for trusted setups. ## What does the next ~3-6 months of mopro look like? Rough skech of things we want to do. 1) Improve API and DevEx 2) Onboard more projects 3) Improve performance 4) Add support for more platforms and proof systems Let's break this down. ### Improve API and DevEx We want to make it very easy to get started, generally simplifying process, minimizing the amount of steps and making the process robust. We also want to create better documentation and tutorials, and improve CI. The CI should be fast (~10m, now 2h...), test more relevant paths, and perhaps show performance metrics. The API needs to be cleaned up and improved. Also see section on mopro CLI interface above. 1) More robust API 2) mopro CLI interface 3) Docs and tutorials 4) Improve CI ## Onboard more projects We did a PoC with pocket-kimchi that went very well. We want to identify and onboard more similar projects and help them where we can. One candidate is the Japanese ZK-Identity system. More ideas are welcome, and we should be involved from the beginning with integration to make sure they get what we need and we build for their specific problems. This relates to API/DevEx, where project should be able to control their own repo and not work "inside" mopro (with mopro init). 1) Onboard at least 3 projects ## Improve performance We want to address bottlenecks identified (zkey and WASM witness generation). We also want to get some traction on GPU experimentation (see Github [issues](https://github.com/oskarth/mopro/issues/22) scoped out). Finally, though this falls more under API/DevEx, we want to speed up CI and ideally use this for performance metrics. 1) Address bottlenecks mentioned 2) GPU Experimentation 3) Speed up CI and get metrics from mobile ## Add support for more platforms and proof systems No-brainer here is Android, and should be trivial for basics. We also want to add React Native native modules, which includes binding native Swift/Kotlin to JS. Other things useful on the platform front is basic support for PWA (Progressive Web Apps) leveraging service workers, offline usage etc (a la Connect4). We currently basically have Rust CLI for free, so seems useful to expose this too. We also get Python bindings for free with UniFFI, so it might be useful to have a very basic example of how to do things with Python bindings on desktop, especially in terms of onboarding non-ZK people. On the proof system side, we should add Halo2 bindings, some folding scheme (ideally with folding-schemes repo). Currently can't use Nova Scotia because it is spawning subprocess. Possibly Noir or similar DSL would be useful too. For proof systems, we should also engage directly with projects to tell them requirements for portable (no subprocess, tweaks to API/serialization, small lib size, etc). 1) Add more platforms such as Android, PWA, CLI 2) Add more proof systems such as Halo2 and ~Nova ## Questions - PSE and 0xPARC alignment on goals and priorities - Structure: grant vs contract etc - Team composition - Splitting up work and leveraging other grants/efforts

    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