{"id":18062111,"url":"https://github.com/aimaster-dev/hyperledger-ml","last_synced_at":"2025-04-05T13:21:05.451Z","repository":{"id":268760663,"uuid":"884365675","full_name":"aimaster-dev/hyperledger-ml","owner":"aimaster-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-18T14:18:37.000Z","size":18047,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T15:28:04.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/aimaster-dev.png","metadata":{"files":{"readme":null,"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":"2024-11-06T16:10:16.000Z","updated_at":"2025-02-18T14:18:41.000Z","dependencies_parsed_at":"2024-12-18T19:34:04.319Z","dependency_job_id":null,"html_url":"https://github.com/aimaster-dev/hyperledger-ml","commit_stats":null,"previous_names":["aimaster-dev/hyperledger-ml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fhyperledger-ml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fhyperledger-ml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fhyperledger-ml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fhyperledger-ml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimaster-dev","download_url":"https://codeload.github.com/aimaster-dev/hyperledger-ml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339882,"owners_count":20923154,"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":["blockchain","hyperledger-fabric","layer1","machine-learning","shell-script"],"created_at":"2024-10-31T05:05:41.293Z","updated_at":"2025-04-05T13:21:05.445Z","avatar_url":"https://github.com/aimaster-dev.png","language":"Shell","readme":"# hyperledger-fabric-generic-network\n\nA simple and generic hyperledger fabric network that runs with Raft consensus and TLS enabled.\nIt deploys a network with:\n\n    - 1 Certificate Authority\n    - 3 orderers for the raft consensus to work nicely\n    - 1 Peer\n    - 1 CouchDB\n    - 1 CLI\n\n** For working with privateData, you must deploy a second peer  \n\nPre Requisites:\nRefer to https://hyperledger-fabric.readthedocs.io/en/release-1.4/prereqs.html\n\nRequires versions 12.19 of node and 6.14.8 npm to be installed\n\nThis network work only on Fabric 2.3 and it is up to production standards using Raft and TLS for secure communication\n\nTo deploy a network simply run the command \"./deploy.sh\" in your terminal and tpye in the following information\nas it asks you in an interactive mode:\n\n    - Organization Name\n    - Organization Domain\n    - Host computers IP Address\n\nExample:\n./deploy.sh\n\nOrganization Name: Org1\n\nOrganization Domain: org1.com\n\nComputer IP Address: 192.168.0.0\n\n\nTo get the host computers ip address, you can run \"hostname -I\"\n\nIf you encounter the error\n\n\"Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network hyperledger-fabric-generic-network_fabric not found\"\n\nThen you must change the environment variable in the Peer Service in the the docker-compose.yml\n\n      - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledgerfabricgenericnetwork_fabric\n\nAdd or Remove Organization Script\n\nFile: add-remove-org.sh\n\nThis file adds an organization or removes it from a given channel. There are three files required:\n\n    - server.crt (The new organizations orderer tls)\n\n    - newOrg.json (The json that contains the new organizations peer's public keys, generated by the command \"configtxgen -printOrg\")\n\n    - newOrgORderer.json (The json that contains the new organizations orderer's public keys, generated by the command \"configtxgen -printOrg\")\n\nThe script must be run from within the CLI container and the three files in the same root folder as the script file.\n\nTo add an organization, run the script with the following parameters:\n\n    - ./add-remove-org.sh add ORG_NAME ORG_IP admin_org_domain CHANNEL_NAME AdminOrgName\n\nTo remove an organization\n\n    - ./add-remove-org.sh remove ORG_NAME ORG_IP admin_org_domain CHANNEL_NAME AdminOrgName\n\nNode Client\n\nThe node client is used to transact with the network using POST requests\n\nThe client API uses NodeExpress and uses port 3000. If you want to use Kong, just change the port to 8000\n\n\nThe first step is to enroll the admin\n\nEndpoint: http://localhost:3000/enrollAdmin\n\n\nThe second step is to register a user to interact with the network\n\nEndpoint: http://localhost:3000/registerUser\n\nJSON payload to send:\n\n{ \"user\": \"userName\" }\n\n\nThere are two functions currently implemented:\n\n\nInvoke the chaincode and create a transaction in the network\n\nEndpoint: http://localhost:3000/invoke\n\nJSON Payload to send:\n\n{ \"user\": \"userName\", \"key\": \"KeyForData\", \"data\": \"any data\" }\n\n\nQuery the blockchain\n\nEndpoint: http://localhost:3000/query\n\n{ \"user\": \"userName\", \"key\": \"KeyForData\", }\n\nI am not responsible for the misuse of this generic code nor any damages that may occurr from improper use or development.\nThis code is open source and free for anyone to use for any type of project or application under the Apache-2.0 license\n\n\nFeel free to email me with questions or suggestions\n\nContact:\nnlzanutim@yahoo.com\n\nDonations are welcome as I intend on continuing to contribute to the community\n\nBitcoin: bc1qndlhlznpcqp63hacj4w28ph6vxjzua942ftqse\n\nLitecoin: ltc1q2vzn2ztts5lf8am4h5paukjv8xha5ajte8rpg2\n\nMonero: 45yWqAH7ynhGUXtwx2nuNn14avPXNcdTwfa1aWbU5tbm1oBtiVCLo4fSD83nG6K5JeC1kwtLRbWqsadtCuodXeYnStbMtGw\n\nDogecoin: DR6tUDs8YKbfqiRSwtN5fXATr9YNHGbXQY\n\nEthereum: 0x4F6e88c170F438EC2529f6bbA921c0236b3b45c4\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimaster-dev%2Fhyperledger-ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimaster-dev%2Fhyperledger-ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimaster-dev%2Fhyperledger-ml/lists"}