https://github.com/descent-collective/ozi
Ozi is an application run by nodes(Descent price feeds). It broadcasts signed price messages through a network of peer-to-peer nodes over the gossip-sub protocol of libp2p.
https://github.com/descent-collective/ozi
Last synced: 2 months ago
JSON representation
Ozi is an application run by nodes(Descent price feeds). It broadcasts signed price messages through a network of peer-to-peer nodes over the gossip-sub protocol of libp2p.
- Host: GitHub
- URL: https://github.com/descent-collective/ozi
- Owner: Descent-Collective
- Created: 2023-10-16T14:55:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T13:48:17.000Z (over 1 year ago)
- Last Synced: 2025-01-24T01:46:42.546Z (4 months ago)
- Language: Rust
- Size: 99.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
POC for using libp2p gossipsub protocol to broadcast signed price messages for relayer clients to pick it up and send to the oracle smart contract.
**TODO:**
- [x] use kademlia for peer discovery. right now we do it by pinging a peer. see https://github.com/libp2p/rust-libp2p/discussions/2447
- [ ] Get price for a particular collateral pair(e.g USDC/NGN) from listed exchanges(e.g. cryptocompare)
- [ ] Sign price data using nodes private keys
- [ ] Use variables from config to make API calls to exchanges.## usage
In one terminal:
`$ cd ozi && cargo run -- m "hello"`
The following will be printed:
Listening on *< address >*
------
In another terminal:
`$ cd ozi && cargo run --m "hello from 2" -p < address >`