Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • use kademlia for peer discovery. right now we do it by pinging a peer. see libp2p/rust-libp2p#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 >

About

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.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages