Skip to content
Decentralised transactions relay for sensors
JavaScript CSS HTML Shell
Branch: master
Clone or download
Latest commit 44a2fe1 Feb 11, 2020
Type Name Latest commit message Commit time
Failed to load latest commit information.
blockchain New trixie animation Sep 9, 2018
relayer Sesnors signing implemented Sep 9, 2018
sensor increasing timeout for sensor messages Sep 18, 2018
.gitignore chore: merge old truffle with truffle react-auth Sep 8, 2018
LICENSE Create LICENSE Feb 11, 2020

Please use the following sensor address for the testing purpose 0x01db8c011f8caa93479fa6db874e08156c7d02ab / Simulation currently not in operation, check back for more information.


SensorTRX is a project that was hacked during EthBerlin 2018.
A presentation of the project can be found here:
A demo of the project can be found here:


SensorTRX is a lightweight protocol for sensor oracles.
It avoids the hassle of having to create and manage ethereum accounts for each sensor in a project.
It also avoids having sensors manage private keys and connecting directly to the blockchain, so that if they are lost or damaged, no Eth is lost.


Sensors simply sign their data with an elliptic curve digital signature and broadcast it over the Internet.
Relayers can pick up these messages and carry out a (free) off-chain verification of the validity of the message by querying the the target smart contract to avoid unnecessary overhead.
If everything checks out, the Relayer can then send the signed data to the smart contract. Once accepted, the Relayer automatically receives a bounty reward for relaying the message.


This implementation was coded during EthBerlin and integrates with the Alice ( "donation by results" protocol.
It allows charities to verify claims that they have achieved their goals by broadcasting signed messages on Telegram (this could be any public posting service).
Relayers can check whether the sensor will successfully validate a charity claim before relaying the message.
Relayers only receive a bounty if the message effectively verifies a claim.


Authentication contract: admin gateway that ensures only the authorised project administrator can manage sensors.
Project contract: this is the main interface for the SensorTRX protocol, allowing calls to the sensor management, signature verification and charity claims contracts. Relayers can perform a query on the validity of signed sensor messages here. The Project contract also pays out bounties to relayers.
Sensor management contract: allows the project manager to create authorised sensors (whitelist) and activate or deactivate them (in case they become unresponsive)
Verifier contract: verifies the signature of whitelisted sensors
Claims registry contract: records the claims made by charities (in this implementation)

You can’t perform that action at this time.