Giter Club home page Giter Club logo

geoblocks's Introduction

GeoBlocks: Trustless Geospatial Data Sharing with Accountability and Decentralized Access Control

This repository contains the implementation of GeoBlocks protocol introduced in the paper GeoBlocks [BRAINS'24]

Note that the Paper has 2 major components implemented in different sub repositories of this repo. This includes

  • The application gateway implementation
  • The smartcontracts implemenation on hyperledger fabric framework

Reference

If you use any code in this repository, or want to cite the GeoBlocks work, please cite the following paper:

@inproceedings{agarwal2024geoblocks,
  title={GeoBlocks: Trustless Geospatial Data Sharing with Accountability and Decentralized Access Control},
  author={Agarwal, Pankaj Kumar and Chadha, Amrit and Ghosh, Bishakh Chandra and Ghosh, Soumya K and Chakraborty, Sandip},
  booktitle={2024 6th Conference on Blockchain Research \& Applications for Innovative Networks and Services (BRAINS)},
  year={2024},
  organization={IEEE}
}

GeoServer setup

This guide assumes each participant already has a geoserver running locally to which the application gateway connects. If you don't have one, you can use a test docker setup as below

docker run -it -p 80:8080 docker.osgeo.org/geoserver:2.23.0

Build Instructions: Application Gateway

Note: Tested on node v16.20.2 and npm 8.19.4

npm i
node org_contract.js

Environment setup: Hyperledger Fabric

Note the codebase was tested on fabric release-2.2

The official installation docs can be found here

Build & Deployment Insructions: Smart Contracts

  1. Package the chaincode
peer lifecycle chaincode package acl.tar.gz --path ../chaincode/acl/ --lang golang --label acl_1.0

peer lifecycle chaincode package drs.tar.gz --path ../chaincode/drs/ --lang golang --label drs_1.0
  1. Create channel
bash network.sh up createChannel -c mychannel -ca
  1. Deploy packaged chaincode
bash network.sh deployCC -ccn acl -ccp ../chaincode/acl/ -ccl go

bash network.sh deployCC -ccn drs -ccp ../chaincode/drs/ -ccl go

Note: Behind the scenes, this script uses the chaincode lifecycle to package, install, query installed chaincode, approve chaincode for both Org1 and Org2, and finally commit the chaincode. You can refer each of the step involved and how it works here

Testing

Run the application gateway after you Geoserver and Fabric setup are done.

This starts an express server, post which you can start using the APIs of the gateway to test the functionality of the application.

geoblocks's People

Contributors

shankusu993 avatar ghoshbishakh avatar

Watchers

 avatar

Forkers

ghoshbishakh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.