I am working on oracles. I saw this link - https://kndrck.co/posts/ethereum_oracles_a_simple_guide/
The code works, I tested it. But what is the issue to me, is the code actually secure? Can someone interrupt the message from the client.js to the smart contract and change the value?
There is not any TLS and no other way to confirm the correctness of the data.
This is the key js -
var OracleContract = require('./build/contracts/CMCOracle.json') var contract = require('truffle-contract') var Web3 = require('web3'); var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));