package
0.0.0-20200121190151-42c6bbb4708d
Repository: https://github.com/yaleopenlab/openclimate.git
Documentation: pkg.go.dev
# README
oracle
This folder contains the AI oracle functionality that is used to verify data via cross-referencing.
# Functions
Schedule() schedules regular calls to APIs and FTP servers for data, sends the data to the oracle for verification and storage on IPFS and Ethereum.
VerifyAndCommit receives data and depending on what kind of data it is, sends it to a helper function to verify the data and compute the "true value".
# Structs
Struct defining the data scheme of all reported climate action data when it is stored on Ethereum.
Struct attaches a name to the filestring.
The GlobalCO2 struct defines the data and meta-data that will be attached To the atmospheric CO2 measurements observed at various sites and stored on the NOAA ESRL FTP server.
The GlobalTemp struct defines the data and meta-data that will be attached to global temp measurements (TBD where the temperature data will come from).
# Type aliases
Function type that returns a bool to test whether data meets user-specified criteria.