Skip to content

dk14/mega-peers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,806 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

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.