Skip to content

Middleware for Storing Data on Multiple Blockchains

License

Notifications You must be signed in to change notification settings

matheusroleal/atlas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas

Middleware for Storing Data on Multiple Blockchains

What it is?

A blockchain is a distributed database that maintains a continuously growing list of ordered records, called blocks. These blocks are linked using cryptography. Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data.

Our systems tries to make it simple to create links cross-chains. In other words, it allows blockchains to speak to one another in a standardized way. Cross blockchain compatibility, allows different blockchains to communicate with one another without the help of intermediaries. Instead, people will be able to transact with users from other compatible blockchains. The entire process will take place without any downtime or expensive transaction fees.

How it works?

This API helps a Mobility Observer Agent(MOA) store positioning data on a Blockchain. Each time MOA wants to create a checkpoint in a new region, it sends an id and data to Atlas. The API then creates a structure comprised of the checkpoint, a timestamp, an id, and a reference id and sends it to a lower Blockchain layer. To facilitate possible GET methods, the API stores this data in a database.

Every time a client wants to consolidate a set of checkpoints, it can send the old identification. The API is responsible for retrieving the checkpoints corresponding to the lower Blockchain layer and compiling them on a segment for the upper layer. MOA also sends the compiled data to a local database for API performance.

Atlas Diagram

Running The Project

  • Clone this project locally
  • Run make setup in your bash / command line
  • Open another terminal and run make db-up in your bash / command line
  • Run make db-migration in your bash / command line
  • Run run-local

To see all the available commands run make help in your bash / command line

---------------- HELP ---------------------
db-up  Start DB Strucutre
db-migration  Create DB Strucutre
setup   Install Go Modules
run-local  Start project locally
unit-test  Start unit test

Dependencies

About

Middleware for Storing Data on Multiple Blockchains

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published