MCPcopy Index your code
hub / github.com/amirgamil/zk-crush

github.com/amirgamil/zk-crush @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4 symbols 14 edges 8 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

zk-Crush

zk-Crush is a way to tell your crush you like them with zero-knowledge.

Disclaimer

Note this project was mostly meant as a joke, it's not trustless (you have to trust the link came from someone you trust) and is vulnerable to rainbow attacks because hashes are unsalted since the app is entirely client-side. Be careful if you're using this seriously, use at your own risk!

overview

How it works

The idea is that we hash the name of your crush, then people can hash their name and check if their hash matches the hash of the crush you've provided. Therefore it's zero-knowledge because we don't store your name, we only know the hash, so finding a hash that matches corresponds to knowing the pre-image to the hash. Also note that this is entirely client-side, we store nothing on a server.

How to use it

Very simple, you enter your name and the name of a crush, then click generate.

It will generate a URL that you will be able to publicly share.

example

When people go to this URL, they can enter their name, to generate the hash of their name and see if it matches the hash of your crush. If it doesn't, no harm done, if it does, they now know!

notmatch match

Core symbols most depended-on inside this repo

MyApp
called by 0
pages/_app.tsx
Home
called by 0
pages/crush.tsx
Home
called by 0
pages/index.tsx
handler
called by 0
pages/api/hello.ts

Shape

Function 4

Languages

TypeScript100%

Modules by API surface

pages/index.tsx1 symbols
pages/crush.tsx1 symbols
pages/api/hello.ts1 symbols
pages/_app.tsx1 symbols

For agents

$ claude mcp add zk-crush \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page