https://github.com/dk14/mega-peers
A p2p fact sharing network
https://github.com/dk14/mega-peers
cryptography oracle p2p p2p-exchange p2p-network trading wolfram
Last synced: 25 days ago
JSON representation
A p2p fact sharing network
- Host: GitHub
- URL: https://github.com/dk14/mega-peers
- Owner: dk14
- Created: 2025-03-05T11:29:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-05-11T01:59:07.000Z (about 1 month ago)
- Last Synced: 2026-05-11T03:37:30.738Z (about 1 month ago)
- Topics: cryptography, oracle, p2p, p2p-exchange, p2p-network, trading, wolfram
- Language: JavaScript
- Homepage:
- Size: 42.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
(this project did NOT use Ai - I literally wrote it by hand, the project contains novel research, and high-quality test coverage)
A p2p fact sharing network
# Mega Peers
Mega *(from מַגָע, contact)* - is a lightweight infinitely scalable decentralized data marketplace, bringing authentic observers to blockchain.
---------
## Description
Mega relies on Proof-Of-Work in order to assign identities to oracles. It models real-life aquisition of identity: though effort!
Oracle's reputation is managed as a set of verifiable proofs of malleability. Traders do some PoW (spam-protection) in order to report malicious oracle.
Everything is stored in Mega's mempoolss. No blockchain required.
---
## Docs
https://dk14.github.io/mega-peers/docs/
---------
## Tests
```
npm i c8 -g
npm run test # protocol, coverage should be 100%
npm run it # p2p and non-essential client APIs
npm run webtest # web-app, non-essential
npm run webtest-it # webrtc and matching, experimental
npm run webtest-it trace # trace matching stdout
```
> tests should printout "OK!" or exit process with error
>> ignore automatic deploy commits in order to see tests passing on github
# Protocol
Protocol and specifications are in `src/protocol.ts` and `mega-peers-spec.yaml`. Protocol reference implementation is in `src/api.ts`.
## Use cases
Non-essential APIs and apps are under `src/client-api/` (oracles and traders, contracts demo), `webapp/` (p2p exchange UI), `src-web/` (matching). See [docs](https://dk14.github.io/mega-peers/docs/).
> Security. Non-essential APIs need stricter typescript flavor, testnet integration tests and security audits for crypto-mainnet uses (as well as HD-wallet support). p2p-network needs real-life performance tests for scaling.
## Code and repo quality notes
[HERE](code-quality-notes.md)
## Contact and donations:
mtkndr@proton.me
BTC: bc1qekvmkczge3hxrvwdf2lj3yyvgjnparn3fdf9lg

(don't lose your wallet - you might get rewards from [another btc project](https://github.com/dk14/crypto/edit/main/chats/btc-audit/README.md) one day)
Credentials: [my youtube with IOHK](https://www.youtube.com/watch?v=RhXlOdNyGn8), [paper](https://www.researchgate.net/publication/354641980_Standardized_Crypto-Loans_on_the_Cardano_Blockchain), [actus standard](https://www.actusfrf.org/post/marlowe-and-actus), [research with wolfram](https://github.com/dk14/wolfram-oracle-research)