{"id":13626615,"url":"https://github.com/bigchaindb/bigchaindb-hyperledger","last_synced_at":"2025-07-13T07:39:41.511Z","repository":{"id":150847416,"uuid":"144958990","full_name":"bigchaindb/bigchaindb-hyperledger","owner":"bigchaindb","description":"BigchainDB integration with HyperLedger Fabric. In collaboration with TheLedger","archived":false,"fork":false,"pushed_at":"2018-09-20T12:54:47.000Z","size":1718,"stargazers_count":26,"open_issues_count":1,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T20:05:29.674Z","etag":null,"topics":["bigchaindb","blockchain","decentralized-storage","hyperledger-fabric","integration"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigchaindb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-16T08:21:45.000Z","updated_at":"2024-08-27T18:31:59.000Z","dependencies_parsed_at":"2023-04-26T20:02:08.349Z","dependency_job_id":null,"html_url":"https://github.com/bigchaindb/bigchaindb-hyperledger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigchaindb%2Fbigchaindb-hyperledger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigchaindb%2Fbigchaindb-hyperledger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigchaindb%2Fbigchaindb-hyperledger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigchaindb%2Fbigchaindb-hyperledger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigchaindb","download_url":"https://codeload.github.com/bigchaindb/bigchaindb-hyperledger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599654,"owners_count":21615563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigchaindb","blockchain","decentralized-storage","hyperledger-fabric","integration"],"created_at":"2024-08-01T21:02:24.981Z","updated_at":"2025-04-29T23:30:26.960Z","avatar_url":"https://github.com/bigchaindb.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# BigchainDB-Hyperledger Fabric Integration\n\nThis project is the outcome of a mini-hackathon in which the BigchainDB and TheLedger teams participated on the 16-17 of August 2018.\n\n## Design\n\n ![hld](./specs/hld.png)\n\n**The high level design specification is available at - [./specs/design.md](./specs/design.md)**\n\n## Directory Structure\n\nThe directory structure of this project is as below :\n\n```\n.\n├── LICENSE\n├── README.md\n├── bdb-hyperledger-oracle/\n│  \n├── data_job/\n│   \n├── hyperledger-chainservice/\n│  \n├── specs/\n│   \n└── ui/\n```\n\n### data_job/\n\nThis is a node based cron job that posts transactions to BigchainDB network. \n\n### ui/\n\nThis is a react based app to access REST API of Hyperledger Fabric chain service. This UI is for demo usage of the BigchainDB-Hyperledger Fabric oracle. The web form first creates a BigchainDB asset by taking passphrase and asset data (a number). Once the asset is created, the asset id is passed to a Hyperledger chain-code which internally passes it to the oracle. The oracle then queries BigchainDB with the asset id and executes a callback passed by the Hyperledger chain-code. The oracle then sends back the results to Hyperledger chain service.\n\n### hyperledger-chainservice/\n\nThis is hyperledger chain-service that interacts with the fabric network.\n\n### bdb-hyperledger-oracle/\n\nThis project is an express API that functions as an oracle between Hyperledger Fabric (here in `hyperledger-chainservice/`) and BigchainDB.\n\nIn a real scenario, the chain-code can do pre-processing and create a dynamic callback before sending the request to the oracle.\n\n## Installation \u0026 Usage\n\n### Prerequisites\n\n* BigchainDB network is up and running\n* Hyperledger network is up and running (to run the Hyperledger fabric network, run the `startFabric.sh` script in the `/hyperledger-network/scripts` directory)\n\n### Installation\n\n* Create `.env` files in the root of each of oracle, chainservice and ui based on their `.env.example` files, respectively.\n\n* Update the `.env` values as per your network and node IP addresses and ports.\n\n* From new terminal, in `hyperledger-chainservice/` execute `yarn` and `yarn run start:watch`. This will start Hyperledger-chaincode REST server to be consumed by UI.\n\n* From new terminal, in `ui/`, execute `npm install` and then `npm start`. This will start react application on port 3000.\n\n* From another new terminal, run `docker-compose build` and `docker-compose up` from the root directory. This will bring up the oracle.\n\n### Usage\n\n* In your browser, visit `http://localhost:3000`, you will see UI for this project.\n* Follow the instructions on the web page.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigchaindb%2Fbigchaindb-hyperledger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigchaindb%2Fbigchaindb-hyperledger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigchaindb%2Fbigchaindb-hyperledger/lists"}