Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhchia/peek-a-book
PeekABook, a private order matching system. https://ethresear.ch/t/peekabook-private-order-matching/6987
https://github.com/mhchia/peek-a-book
ethereum mpc zkp
Last synced: 25 days ago
JSON representation
PeekABook, a private order matching system. https://ethresear.ch/t/peekabook-private-order-matching/6987
- Host: GitHub
- URL: https://github.com/mhchia/peek-a-book
- Owner: mhchia
- License: mit
- Created: 2020-05-16T08:42:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T06:15:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-04T13:39:40.543Z (about 1 month ago)
- Topics: ethereum, mpc, zkp
- Language: TypeScript
- Homepage: https://mhchia.github.io/peek-a-book/
- Size: 2.35 MB
- Stars: 17
- Watchers: 4
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# peek-a-book
> A typescript implementation of [PeekABook][peek_a_book], a private order matching system proposed by Barry Whitehat and Kobi Gurkan.## What is PeekABook?
`PeekABook` is a private order matching system on [Ethereum](https://en.wikipedia.org/wiki/Ethereum). It allows users to advertise and search for trading orders without leaking the order price.To trade, users can either post an advertisement or search for existing advertisements on the smart contract. An advertisement consists of `({identity}, {sell or buy}, {pair_name}, {amount})`, which means user `identity` wants to either sell or buy `amount` units of pair `pair_name`. When a user `A` contacts an advertiser `B`, [SMP(Socialist Millionaire Problem) Protocol][smp_wiki] to let both `A` and `B` know whether they desire the same price. Thanks to the protocol, A and B will only know whether `priceA == priceB` is true or not. They won't learn any more than this fact. [`js-smp-peer`][js_smp_peer] is used to handle and initiate SMP protocol.
## Demo
https://mhchia.github.io/peek-a-book/
[peek_a_book]: https://ethresear.ch/t/peekabook-private-order-matching/6987
[smp_wiki]: https://en.wikipedia.org/wiki/Socialist_millionaires
[js_smp_peer]: https://github.com/mhchia/js-smp-peer
[ethereum]: https://en.wikipedia.org/wiki/Ethereum