Skip to content

Open Food Trust is providing insights into food security and sustainability in a reliable and secure manner

License

Notifications You must be signed in to change notification settings

mesur-io/openfoodtrust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Food Trust

Open Food Trust provides insights into the food and ag supply chain with an emphasis towards supporting initiatives around sustainability, reduction of food waste, and to enable track and trace of agricultural products in a reliable and secure manner.

The key initial use cases for this project are to shorten time to delivery and improve insights and risk around short-shelf life products as they are harvested, leave the farm (and sometimes are processed), and cross an international border. These types of shipments typically utilize truck or air as their transport mode, but we also support key shipping use cases as well, and welcome feedback from supply chain managers on the challenges they face so that we can tune our roadmap effectively.

Key goals for this project are to improve the digitization and interoperabilty of key certificates required for cross-border ag imports/exports in a manner that is compatible with key players in the food supply chain (both public and private), and in a manner that supports broad analytics of the metadata related to these sorts of food shipments.

The Open Food Trust initiative is being sponsored by mesur.io and integrates with our Earthstream:tm: platform which provides risk, spoilage, contamination, and other key models and insights that are needed by certain actors on the supply chain.

Project Structure

The core project is made up of three main components:

  • a set of APIs that expose the ability to track and trace agricultural goods
  • the engine that actually handles requests into the APIs
  • a set of libraries that provide common functionality across aspects of the engine Core Components

Design Philosophy and Key Goals

Where possible we are using a spec first, rather than code first approach to the core APIs. This is primarily so that we can focus on interoperability with other key vendors in the marketplace, and to identify common vocab elements that should be shared across other supply chain related efforts.

Wherever possible data/metadata is itself not stored on "the blockchain", but is instead anchored by pusing an appropriately robust hash value of key metadata to the selected blockchain.

Encryption methods in use by this project should conform to FIPS 186-5 (DRAFT), FIPS 180-4, and to FIPS 197. This effectively means that commiters should be thinking along the lines of S?HA-256, Ed25519, and Rijndael vs other competing algorithms.

These enryption requirements effectively eliminate the large permissionless blockchains, and imply usage of Hyperledger Fabric, HashGraph, or QLDB. Our prefered primary implementation at this time will be on QLDB. Given that a key requirement for this effort is to support cross border supply chain, and mandates interactions with governmetnal organizations, NGOs, and large enterprises, use of a permissioned blockchain should not be viewed as a detriment, but a cost of doing business.

Building the API Docs

Get the reqs

$ npm install -g redoc-cli
$ npm install -g @redocly/openapi-cli
# handy little quick web server if you want it
$ npm install -g http-serve

Build the Docs themselves

# This is the key build command for the API docs, a build script will be following eventually
# some preceeding code to merge up api specs, likely using speccy
$ npm run build
# this is optional, you can also serve the generated spec directly using redoc-cli
$ http-serve ./docs

View the APIs online

Use the link(s) below to see the existing API documentation hosted online by Mesur.io

Key Roadmap Items

  • Initial project definition and requirements gathering
  • Initial API Definitions (In-progress)
    • Documents
    • Trace
    • Credentials
    • Insights
    • Authorization
  • API Implementiation (In-progress)

External and Related Miscellaneous Items

Things we like and are leveraging as a part of this project:

Funding, Additional Credits, and Notes

Primary funding for this project is provided by mesur.io out of a desire to see a sustainable world where all people get the food they need safely.

Portions of the work on this specification have been funded by the United States Department of Homeland Security's (US DHS) Science and Technology Directorate under as well as the US DHS Silicon Valley Innovation Program. The content of this specification does not necessarily reflect the position or the policy of the U.S. Government and no official endorsement should be inferred.

About

Open Food Trust is providing insights into food security and sustainability in a reliable and secure manner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published