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
    --- marp: true title: "Taipei ZK Workshop: A Friendly Introduction to Zero Knowledge" paginate: true _paginate: false --- ## Taipei ZK Workshop - Intro by ZKET team - First session: Intro to ZK (1030-1115) Note: --- ## A Friendly Introduction to Zero Knowledge ![01_zkp-magic](https://hackmd.io/_uploads/BkD8J_chJl.png =80%x) Note: - Adapted from zkintro.com - Booklets available - General intro, then code/math --- ## Introduction (1) - ZKPs sometimes called “magic” tech - Let us do things that previously seemed impossible Note: Emphasize the “magic” aspect—technology offering new trust models. --- ## Introduction (1 cont) > “Any sufficiently advanced technology is indistinguishable from magic.” - Arthur C. Clarke --- ## Introduction (1 cont) > “Civilization advances by extending the number of operations we can perform without thinking about them.” - Alfred North Whitehead --- ## Introduction (1 cont) > “Privacy is the power to selectively reveal oneself to the world.” - A Cypherpunk's Manifesto Note: Quotes highlight key ZKP themes: magic, privacy, succinctness, and a future that’s unfolding. --- ## Introduction (1 cont) - Internet/computers touch every part of life - We feed data (consciously or not) into countless services - Complexity of systems → few fully understand them - Trust becomes a big question: Who do we trust? Why? Note: - Frames the problem: data usage, large-scale complexity, trust dilemmas. - MAMAA, B2B, government services, etc --- ## Introduction (1 cont) - ZKPs reduce blind trust requirements - Not a universal fix, but widely applicable - We’ll discuss: - What are ZKPs? - Why care? - How they work - Applications in the real world Note: Overview of the talk’s outline. --- ## What is a ZKP? (2) - A way to prove a statement is true without revealing extra data - Example: Confirm “I’m over 18” with no personal details - Zero knowledge = share only the claim’s truth Note: - The core principle is minimal disclosure of hidden info. - Bar example; prove paid correct taxes w/o details --- ## Where’s Waldo (2 cont) ![01_waldo](https://hackmd.io/_uploads/r1uKk_5hye.jpg =80%x) Note: - Analogy - You know Waldo’s location but keep it hidden - Large paper with a small hole → only Waldo visible --- ## What is a ZKP? (2 cont) - ZKPs are general-purpose: - Prove knowledge of a solution (e.g., puzzle, ID, financial detail) - Preserve privacy while guaranteeing correctness Note: Sets the stage for advanced usage. Arbitrary statements. --- ## Why Care About ZKPs? (3) - **Privacy** (zero-knowledge): - Only reveal relevant facts - “Selective reveal” for digital data - **Compression** (succinctness): - Short proofs for big computations - Crucial in constrained settings (e.g., blockchains) Note: Two major benefits that power new possibilities. --- ## Privacy (3.1) - Privacy = data belonging to a single person/group - Physical world: private homes, keys, rooms - Digital world: also needs privacy (often neglected) - ZKPs = “programmable privacy,” revealing only what’s needed Note: - Reflect on the normalcy of privacy in physical contexts vs. the digital gap. - Passwords; convos/cc/social graphs... --- ## Silent Reading (3.1) ![01_silent-reading](https://hackmd.io/_uploads/HyvPZO5hkl.jpg =80%x) Note: - Historically, “silent reading” was novel—privacy norms can evolve similarly now. - Used to be surprising 2000 years ago, bishop --- ## Compression (3.2) > “I have made this longer… only because I haven’t had time to make it shorter.” – Blaise Pascal - Compress: press into small space - Succinctness: express clearly in few words - Example: Blockchains have limited space Note: Think of it as a “compressed detective conclusion.” Size stays constant; useful outside too --- ## Sherlock Holmes (3.2) ![01_sherlock-holmes](https://hackmd.io/_uploads/rytmmOc3yl.jpg =60%x) Note: - A metaphor for revealing “whodunit” succinctly. - A lot of back and forth, some argument of knowledge, ~proof --- ## What Do You Know? (3.3) > Civilization advances by extending the number of operations we can perform without thinking about them. (Alfred North Whitehead) --- ## What Do You Know? (3.3) - We trust banks, institutions, big tech daily - Mentally taxing - what if they fail or misuse data? - Audits/fines aim to reduce risks, but add complexity - ZKPs can streamline trust → do more automatically - Social scalability Note: Less mental overhead if proofs handle trust checks. Esp as social complexity increases; composing ZKPs --- ## General-Purpose Computation (3.4) ![01_graphviz-hash](https://hackmd.io/_uploads/B1Xyx3k61g.png) ![01_graphviz-zkp](https://hackmd.io/_uploads/rJ8Jxn1akl.png) Note: - Hash function to proof; private input and public input, proof - Like calculator to computer --- ## General-Purpose Computation (3.4) - ZKPs shift from single-purpose (e.g., hashes) to universal programs - Like going from a **calculator** → **computer** - Example: prove valid ID, over-18, and a valid ticket without revealing personal info Note: “Program any condition” and get a privacy-preserving proof. Waldo, or Sudoku example - diff but can e express both Group signature, Publius --- ## Why Now? (3.5) - ZKP concept known since 1980s, only recently practical - Blockchains (Ethereum, Zcash) accelerated R&D - Rapid improvements: faster proof generation, robust tools - Comparable to “Moore’s law” leaps in performance Note: Perfect storm of research + real-world demand fueling the ZKP boom. --- ## How ZKPs Work (4.1) - Involves a **Prover** and **Verifier** - Prover has private input (“witness”) + public input - Often “non-interactive”: single proof, no back-and-forth - Protocol ensures correctness Note: High-level structure: one proof, easy to verify. --- ## How ZKPs Work (4.1 cont) - Protocol: rules for correct conduct - Proof: argument establishing truth of stm - Prover: someone who proves - Verifier: someone who verifies correctness - Private input: visible to prover (witness) - Public input: visible to prover & verfier (instance) Note: - Some terminoloy Protocol chess, Holmes, reasonable doubt Protocol prover verfier, interactive, then not --- ## How ZKPs Work (4.1 cont) - Called “zk-SNARKs”: Zero-Knowledge Succinct Non-Interactive ARgument of Knowledge - ZKPs as a Zoo: Different systems (varying math assumptions/setups) - Common theme: short proofs, data privacy Note: Summarizes acronym and broad categories. Different ones, SNARKs, some ZK system not even ZK --- ## Protocol (4.2) ![01_graphviz-zkp](https://hackmd.io/_uploads/rJ8Jxn1akl.png) - Special program: *circuit* made up of *constraints* - (Setup: Prover and verification key) Note: - Special program; e.g. preimg hash; verify t/f --- ## Constraints (4.3) - Program is broken into **constraints** - Example: Sudoku rules (each row/column has unique digits) - Satisfying all constraints → valid solution Note: ZKPs prove constraints hold without revealing internal secrets. Circuit because constraints related, electric circuit Any problem can be expressed; but diff paradigm! --- ## Sudoku example (4.4) ![01_sudoku](https://hackmd.io/_uploads/BJtArOqh1x.png =60%x) Note: Another example: prove you solved Sudoku without showing your final grid. Need all constraints valid! --- ## Proof (4.4) <table> <tr> <td><img src="https://hackmd.io/_uploads/B1ndB2kayl.png" width="80%"></td> <td><img src="https://hackmd.io/_uploads/rkuOrny6kx.png" width="80%"></td> </tr> </table> Note: - Magic spell left - Right is proof that works; we'll go into what this is more --- ## Some properties (4.5) - Completeness: if statement is true, verifier will be convinced - Soundness: if statement false, ~verifier won't be convinced by proof - Zero knowledge: if stm true, won't reveal anything else Note: Key takeaway: the solver’s secret remains hidden, but correctness is certain. Soundness is statistical --- ## Some properties (4.5) - Considerations: assumptions, security - Trusted setup - Performance for generating/verifying proofs - Software support, DevEx - Etc Note: - Many diff types of ZK Zoo, both in theory and practice - We'll see some here; focus on gist --- ## Real-World Applications (5) - **Electronic Cash (Zcash, Tornado Cash, Railgun)** - Private transactions, preserving fungibility - Anonymous Signaling (Semaphore) - Group membership/voting - **ZK Rollups/zkEVM** - Bundle txs off-chain, post a small proof - E.g., Polygon zk-EVM, zkSync - **Data Provenance & ZK-ID** - Prove access to e.g. passport or email - E.g. Rarimo, ZK-Email; also TLS Notary Note: Widespread usage across blockchain privacy and scaling. Last recently --- ## Real-World Applications (5 cont) - **ZK-VM (Mina, Aleo)** - new blockchain architecture - **Dark Forest** - “fog of war” in real-time strategy - **ZK Bridges** - cross-chain asset transfers - **ZK-ML** - private model/data - **Future**: - photo authenticity, nuclear disarmament, etc. Note: Rapidly expanding domain—beyond just blockchains. --- ## Real-World Applications (5 cont) > "By 2040, someone will have won a Nobel Peace Prize for using Zero Knowledge Proofs." > Barry Whitehat Note: - outlandish but who knows --- ## Conclusion & References (6) - ZKPs = privacy + succinctness → new trust paradigm - Deployed in real apps (finance, identity, gaming) - Ecosystem evolving quickly, more breakthroughs ahead - Original article & background: [zkintro.com/articles/friendly-introduction-to-zero-knowledge](https://zkintro.com/articles/friendly-introduction-to-zero-knowledge) Note: End of deck—encourage deeper study. --- ## Thanks! - Questions? - Logistics: - Short break - Then coding session

    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