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
      • Invitee
      • No invitee
    • Publish Note

      Publish Note

      Everyone on the web can find and read all notes of this public team.
      Once published, notes can be searched and viewed by anyone online.
      See published notes
      Please check the box to agree to the Community Guidelines.
    • 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
    • Versions and GitHub Sync
    • Note settings
    • 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 Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync 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
Invitee
No invitee
Publish Note

Publish Note

Everyone on the web can find and read all notes of this public team.
Once published, notes can be searched and viewed by anyone online.
See published notes
Please check the box to agree to the Community Guidelines.
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
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
### WITHOUT PERMISSION, WITH PROGRAMMABLE CRYPTOGRAPHY @oskarth, HCPP24 (Prague) --- ## About me - @oskarth / oskarth.com - now: independent researcher (programmable cryptography) - previously: mopro (client-side proving), waku (p2p messaging protocol) Note: Slide 2 --- ## TLDR **With programmable cryptography, we can permissionlessly reclaim our data** Note: Slide 3 Need to understand what we mean by progcrypto and permissionly reclaiming our data --- ## Takeaways 1. Programmable cryptography is a powerful tool 2. Most data online is cryptographically signed 3. We can make this data portable Note: Slide 4 and use it where we want --- ## Agenda - Motivation - Zero Knowledge Proofs - Applications Note: Slide 5 For rest of talk Motivation - look back at last decade, set scene --- ### War on general computation (2011) ![image](https://hackmd.io/_uploads/r1U0EhRT0.png) Note: Slide 6 Can we compute what we want? Vs locked down Regulatory challenges Same stuff, but changed from copyright etc to free speech, freedom to transact in middle of it, e.g. tornado cash 15y ago --- ### Software is eating the world (2011) Program or be programmed. ![image](https://hackmd.io/_uploads/HJZNrh0aA.png =75%x) Note: Slide 7 more than decade ago, even more true today program or be programmed by the algorithm --- ### Privacy is dead (2010) ![image](https://hackmd.io/_uploads/ryMwS3CTC.png) Note: Slide 8 heard this too, while convo changed similar themes chat control, arrest of durov telegram, e2ee encryption crackdown etc --- ## MORE DATA Who owns your data? What can they do with it? Who can compute on it? ![image](https://hackmd.io/_uploads/Hk9FSn0TA.png =50%x) Note: Slide 9 2 zb to 18, x100 las 15y zetta->exa->peta->tera a lot of data - so who owns it etc? --- ## Where is all this data? - Stuck in data silos (Web2) - Google, FB, Amazon... - Banks, Governments... - (Self-hosted, E2EE, Blockchains...) Note: Slide 10 Even if data belongs to you Bitcoin/Self-sovereign but minority --- ## Cryptographic matter - Blockchains and E2EE protocols - yes, and also... - HTTPS (TLS) - Emails (DKIM) - Digital documents (RSA) - Everywhere - can we use this? Note: Slide 11 Everywhere - can we use this? --- ## Without permission (1997) ![image](https://hackmd.io/_uploads/HkklD2ATA.png =50%x) Note: Slide 12 been here before One cool thing about cryptography is we can just do it Same with Bitcoin etc if we are operating self-soverign way nothing stop us, no intermediaries obviously, some fight along the way, but technically can do it --- ### Programmable cryptography (briefly) - Cryptography: Securing digital information - Prog crypto: Cryptography + Computation - Tools: ZK, MPC, FHE - Ex: Prove you 18y+ w/o revealing anything else - If ZK is single-player, MPC/FHE multi-player Note: Slide 13 We will go into this more Witness encryption clear throughline with cypherpunk manifesto in 90s --- ## Part 2 - Zero Knowledge Proofs - Assume you maybe heard but don't know details - Give brief friendly intro - If you familiar can zone out for a bit Note: Slide 14 Explain what they are and how they work TODO: (read more...) later ref --- ## Friendly Intro to ZK - Prove arbitrary statements (general-purpose) - Privacy and compression - Examples - Prove 18y+ (privacy) - Prove state change correct (compression) - Only prove statement is true Note: Slide 15 Proof size --- ### Where's Waldo ![image](https://hackmd.io/_uploads/rypKl6AaR.png) Note: Slide 16 Toy example --- ## Why should you care *Privacy is the power to selectively reveal oneself to the world.* (Cypherpunk's Manifesto) *Civilization advances by extending the number of operations we can perform without thinking about them.* (Alfred Whitehead) Note: Slide 17 No need to convince anyone here of privacy Also gives us certainty, concise proofs building block in many things --- ## How does it work - Special program (ZKP) - Made up of constrains (think Sudoku) - Prover and Verifier - Verifier can be on-chain - Prover creates a proof, verifier verifies it - Private and public input Note: Slide 18 --- ## Why now - Quite new field - Recent advances in affordances - Growing need, especially blockchain context - Complementary tech - Moore's law for ZKPs Note: Slide 19 Exploding field Moore's law: slow, orders of magnitude --- ## Zerocash/Zcash (~2014) ![image](https://hackmd.io/_uploads/S1OsvhA6R.png) Note: Slide 20 From 80s mathematically Practical with Zcash decade ago, Zooko exploded Complementary tech, why --- ## ZKPs and Public Blockchains - Blockchains: censorship resistant and transparent - ZKPs: privacy and compression - Hence Zcash/Monero, L2s... - But: we can use ZKPs w/o blockchains! Note: Slide 21 Note still verifiers --- ## Part 3 - Applications (Overview) - Electronic cash: Zcash/Monero, private tx - Ethereum/Bitcoin L2s... - What about non-blockchain applications? Note: Slide 22 --- ## More on applications - Private identity/voting - A lot of web2 data is locked in - Cryptographic matter: use existing signatures - Let's look at more concrete examples Note: Slide 23 Just look at a few --- ## ZK Identity: Three examples - Zupass (crypto-native) - OpenPassport (passport data) - Anon-Aadhaar (Aadhaar digital ID system) Note: Slide 24 Anti-sybil resistance Access control --- ## Zupass: crypto-native identity - Semaphore groups - (Identity commitments and merkle trees) ![image](https://hackmd.io/_uploads/SJM960A6A.png =50%x) Note: Slide 25 Basic crypto (Poseidon/Semaphore) Merkle Tree Zupass proto-network state But key distribution limited Access and voting What about existing key distributions? --- ### Cryptographic matter - Zupass based on Poseidon hash/Semaphore - Cryptographic matter out there - ECDSA keys for Bitcoin/Ethereum - Signed identity documents, emails... - Can we use this? Note: Slide 26 Why complex? cuz x100 harder to express different plaform, dealing with polynomials not binary out of scope of talk why exactly, written about before TODO: Check diff previous slide --- ## Anon-Aadhaar - Aadhaar in India, ~1B users - RSA verification inside ZKP ![image](https://hackmd.io/_uploads/Hk519zgAC.png =75%x) Note: Slide 27 Complex, but now possible! Including on phones Permissionless Not leaking address Mention client-side perf problem --- ### OpenPassport - Verify signature inside passport - Selective disclosure - Different standards but a lot supported ![image](https://hackmd.io/_uploads/rk7UoMg00.png =75%x) Note: Slide 28 Signature inside, can verify Diff standards a lot support --- ## OpenPassport (cont) - Proof of humanity - Identity verification - Quadratic funding - Wallet recovery Note: Slide 29 E.g. anti sybil, only reveal you got a valid passport nothing else Big problem, especially LLM generated If gonna interact with system this is option in trade-offs space Tool in toolbox Wallet recovery - not gonna burn passport, can use as factor Verify above 18 ECDSA / RSA (SHA256 etc) --- ## ZK Email - DKIM signatures in every email - Emails contains _a lot_ of signed data - Email wallet, ZKP2P ![image](https://hackmd.io/_uploads/rJSY1XgRC.png) Note: Slide 30 Bring off-chain data onchain Regex Example email from Twitter or Parallel Polis --- ## ZKP2P - Trust-minmized p2p onramp to crypto from fiat - Built on top of ZK-Email - Venmo email as proof of payment (e.g.) ![image](https://hackmd.io/_uploads/S1yySmxC0.png =50%x) Note: Slide 31 Upload email/proof (right now remote, UX) Alpha but few 100k volume --- ## ZKP2P (cont) - Above works for some platforms - But not for everything (need good data in email) - What about something like Revolut? Note: Slide 32 Payment details unique id etc Can we do more than just DKIM email signatures? Turns out we can! --- ## Using TLS? - Up until now talked about ZKPs - Programmable Cryptography has more tools - Web runs on HTTPS/TLS - Websites/APIs very data rich - TLS: data origin and integrity, but not portable Note: Slide 33 --- ## TLSNotary - Problem: Client can forge server data - Solution: MPC (more specifically, 2PC) - Not MITM, operating on TLS connection in MPC ![image](https://hackmd.io/_uploads/BJnpTmeAA.png =60%x) Note: Slide 34 Symmetric keys ZK single-player, MPC multiplayer Data provenance Original idea bitcointalk thread 2014 --- ## TLSNotary (cont) - ZKP2P: Revolut data with browser add-on - Extremely powerful and general-purpose - Prove access to account, private information about yourself, received private message, earned a degree, etc... Note: Slide 35 Notary can be anyone, network/replaceable Avoid censorship/collusion --- ## More on programmable cryptography - ZK: Mature, on my private data (single-player) - MPC/FHE: Multiplayer, 2PC most mature - Combinations: ZK-FHE, coSNARKs, ... - (Arguably smart contracts?) - Theoretical: witness encryption, IO... Note: Slide 36 FHE: Operate on multiple encrypted data MPC: Only learn output PSI example WE: encrypt to specific program IO: encrypt program Computationly expensive, threshhold cryptography --- ## Programmable cryptography Hard and flexible, like bamboo and carbon fiber ![image](https://hackmd.io/_uploads/HJU3gVgRC.png) Note: Slide 37 Both robust and flexible Cryptographic hardness, sound money Also flexible in world we live in Anchored old, bamboo New into digital future, carbon fiber ProgCrypto allows us to build new tools and systems for more free future --- ## Recap **With programmable cryptography, we can permissionlessly reclaim our data** - Intro to ZK, briefly on programmable crypto - Saw examples of ZK Identity, ZK-Email, ZKP2P, TLS Notary... Note: Slide 38 --- ## Thanks! Questions? - zkintro.com want to learn more - friendly intro to ZKPs for anyone - also for programming ZKPs - oskarth.com / @oskarth Note: Slide 39 TODO: Mini-wiki resource? ---

Import from clipboard

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 is not available.
Upgrade
All
  • All
  • Team
No template found.

Create custom 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

How to use Slide mode

API Docs

Edit in VSCode

Install browser extension

Get in Touch

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
Upgrade to Prime Plan

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

No updates to save
Compare with
    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

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

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

      Syncing

      Push failed

      Push successfully