2/Oracles consists of a backend REST api for serving up data, signed by a PriceOracle, to be consumed by cash contracts.
It also includes the HodlVault CashScript contract and .ts file needed to transpile and run HodlVault
The REST API calls our BCH price index, encodes the blockHeight and bchUsdPrice into a byte sequence of 8 bytes (4 bytes per value), signs it w/ a pubkey and returns it all as json
Message
Cancel
Creating...
Processing...
HodlVault contract forces hodling until a certain price target and blockheight have been reached
Message
Cancel
Creating...
Processing...
Oracles are very powerful and can be used for prediction markets, trust-less wagers and much more.
Message
Cancel
Creating...
Processing...
The intention of Oracles is to provide the tools needed to quickly bootstrap Oracle data and contracts in Bitcoin Cash.
Message
Cancel
Creating...
Processing...