{"id":18486385,"url":"https://github.com/maxgfr/automobile-blockchain","last_synced_at":"2025-07-28T02:06:52.635Z","repository":{"id":47973661,"uuid":"170677520","full_name":"maxgfr/automobile-blockchain","owner":"maxgfr","description":"Blockchain for automobile use-case","archived":false,"fork":false,"pushed_at":"2024-02-29T20:20:26.000Z","size":36,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T22:25:27.664Z","etag":null,"topics":["automobile","blockchain","blockchain-demos","hyperledger","hyperledger-composer","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxgfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-14T11:01:13.000Z","updated_at":"2019-03-22T11:56:45.000Z","dependencies_parsed_at":"2024-11-06T12:52:49.378Z","dependency_job_id":null,"html_url":"https://github.com/maxgfr/automobile-blockchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxgfr/automobile-blockchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fautomobile-blockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fautomobile-blockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fautomobile-blockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fautomobile-blockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxgfr","download_url":"https://codeload.github.com/maxgfr/automobile-blockchain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fautomobile-blockchain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267451489,"owners_count":24089312,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["automobile","blockchain","blockchain-demos","hyperledger","hyperledger-composer","testing"],"created_at":"2024-11-06T12:49:17.481Z","updated_at":"2025-07-28T02:06:52.608Z","avatar_url":"https://github.com/maxgfr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# automobile-blockchain\n\nBlockchain for automobile use-case\n\n## Launch the network in local\n\n```shell\ncomposer-rest-server -c admin@auto -n always -u true -w true\n```\n\n## Test the network\n\n```shell\nmkdir dist \u0026\u0026 composer archive create --sourceType dir --sourceName . -a ./dist/auto.bna \u0026\u0026 cd dist\n\ncomposer network install --card PeerAdmin@hlfv1 --archiveFile auto.bna\n\ncomposer network start --networkName auto --networkVersion 0.0.1 --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw\n\ncomposer card import --file admin@auto.card\n\ncomposer network ping --card admin@auto\n\ncomposer-rest-server --card admin@auto\n```\n\n## Deploy to IBM Blockchain\n\n### 1. Create a certification authority card\n\n`ENROLLSECRET` is a field of this file : `connection-profile.json`\n\n`connection-profile.json` has been downloaded from IBM Blockchain in the section presentation (connection profile)\n\n```shell\ncd dist \u0026\u0026 composer card create -f ca.card -p connection-profile.json -u admin -s ENROLLSECRET\n\ncomposer card import -f ca.card -c ca\n\ncomposer identity request --card ca --path ./credentials -u admin -s ENROLLSECRET\n```\n\n### 2. Add certificates to IBM blockchain\n\nhttps://console.bluemix.net/docs/services/blockchain/develop_starter.html#etape-3-ajouter-les-certificats-l-instance-de-plan-starter\n\n### 3. Create admin card\n\n```shell\ncomposer card create -f adminCard.card -p connection-profile.json -u admin -c ./credentials/admin-pub.pem -k ./credentials/admin-priv.pem --role PeerAdmin --role ChannelAdmin\n\ncomposer card import -f adminCard.card -c adminCard\n```\n\n### 4. Install the network\n\n```shell\ncomposer network install -c adminCard -a auto.bna\n\ncomposer network start -c adminCard -n auto -V 0.0.1 -A admin -C ./credentials/admin-pub.pem -f delete_me.card\n\nrm delete_me.card\n\ncomposer card create -n auto -p connection-profile.json -u admin -c ./credentials/admin-pub.pem -k ./credentials/admin-priv.pem\n\ncomposer card import -f ./admin@auto.card\n\ncomposer network ping -c admin@auto\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgfr%2Fautomobile-blockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxgfr%2Fautomobile-blockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgfr%2Fautomobile-blockchain/lists"}