Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keep-starknet-strange/zkramp
https://github.com/keep-starknet-strange/zkramp
cairo offramp onramp p2p sk snarks starknet tls tlsnotary
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/keep-starknet-strange/zkramp
- Owner: keep-starknet-strange
- License: mit
- Created: 2024-07-22T13:38:24.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T22:17:31.000Z (4 months ago)
- Last Synced: 2024-09-18T16:51:32.689Z (4 months ago)
- Topics: cairo, offramp, onramp, p2p, sk, snarks, starknet, tls, tlsnotary
- Language: TypeScript
- Homepage:
- Size: 779 KB
- Stars: 20
- Watchers: 7
- Forks: 23
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# zkRamp
## A trustless P2P fiat onramp powered by ZK proofs on Starknet ๐๏ธ
The concept was initially conceived and developed by [ZKP2P](https://zkp2p.xyz) for EVM chains, and zkRamp is making it accessible on Starknet by implementing it in Cairo.
## Roadmap
### Milestone 1 - Liquidity mgmt
Implements onchain logic to manage liquidity and allow ramping.Tasks:
- [x] Offchain account registration
- [x] Defining the architecture
- [x] Liquidity addition
- [x] Liquidity retrieval
- [ ] Liquidity withdrawal
- [ ] Full unit test coverage
- [ ] Full integration test coverage
### Milestone 2 - Backend
Index onchain events and build API to find the best quotes when a user ask to onramp.Tasks:
- [ ] Defining database architecture
- [ ] Infra setup
- [ ] Liquidity indexing
- [ ] Registration indexing
- [ ] Quote computation
- [ ] Registration API
- [ ] full test coverage
### Milestone 3 - Frontend
Design and build frontend without plugging it to the backend.Tasks:
- [x] Layout (mockup)
- [x] Layout
- [x] Buying flow (mockup)
- [ ] Buying flow
- [x] Selling flow (mockup)
- [ ] Selling flow
- [ ] Registration flow (mockup)
- [ ] Registration flow
- [ ] Proof generation flow (mockup)
- [ ] Proof generation flow
### Milestone 4 - TLS Proxy
Implements TLS Proxy to generate proofs from an โattestorโ, gather them in the frontend and verify them onchain.Tasks: TBD
## Flowchart ๐ก
![](/resources/img/main-diagram.png)
## Contracts
For each platform (e.g. Venmo, Revolut, etc.) a smart contract called a "Ramp" is deployed.
Each Ramp is divided into 2 main parts.
- **Account manager** responsible for the mapping between Starknet accounts and the user ID of the supported platform.
- **Funds manager** which serves as an escrow for offrampers and sends funds to onrampers.These parts each use a **processor**, a component responsible for verifying ZK-SNARKs generated by the notary.
The account manager's processor is responsible for verifying that a Starknet account requesting to be linked to a Revolut user ID, for example, provides a validated ZK-SNARK signed by the notary attesting to its ownership of the Revolut account.
As for the funds manager's processor, it verifies that an onramper has actually transferred the fiat funds to an offramper before releasing the equivalent in tokens to them.
## Next steps ๐
In the flowchart above, the notary is a centralized entity running on a server. Therefore, it can generate false attestations and thus steal the money deposited in the contracts. The next major step will therefore be to decentralize the notarization process.
## Contributors โจ
Thanks goes to these wonderful people. Follow the [contributors guide](https://github.com/keep-starknet-strange/zkramp/blob/main/CONTRIBUTING.md) if you'd like to take part.
Chqrles
๐ป
Uฤur Eren
๐ป
Lindsay Morales
๐ป
Charlotte
๐ป
Abdulhakeem Abdulazeez Ayodeji
๐ป
Luiz Vasconcelos Jรบnior
๐ป
lanaivina
๐ป
Bryan
๐ป
Yusuf Habib
๐ป
Mubarak Muhammad Aminu
๐ป
Gerson
๐ป
BlackStarkGoku
๐ป
Ikem
๐ป
Jemiiah
๐ป
leohscl
๐ป
Add your contributions
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!