{"id":19989178,"url":"https://github.com/clamytoe/pychain","last_synced_at":"2026-05-08T23:18:25.095Z","repository":{"id":84639609,"uuid":"131550893","full_name":"clamytoe/pychain","owner":"clamytoe","description":"My attempt at creating a generic blockchain that can be used for any type of ledger.","archived":false,"fork":false,"pushed_at":"2018-12-12T01:48:58.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T11:49:57.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clamytoe.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-30T03:11:51.000Z","updated_at":"2018-12-12T01:48:59.000Z","dependencies_parsed_at":"2023-07-21T00:16:55.466Z","dependency_job_id":null,"html_url":"https://github.com/clamytoe/pychain","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/clamytoe%2Fpychain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Fpychain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Fpychain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Fpychain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clamytoe","download_url":"https://codeload.github.com/clamytoe/pychain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241430311,"owners_count":19961635,"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":[],"created_at":"2024-11-13T04:45:45.015Z","updated_at":"2026-05-08T23:18:20.066Z","avatar_url":"https://github.com/clamytoe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pychain\n\u003e All purpose *blockchain* that can be used for any type of private ledger.\n\n**NOTE**: Still a work in progress.\n\n![Python version][python-version]\n[![Build Status][travis-image]][travis-url]\n[![BCH compliance][bch-image]][bch-url]\n[![GitHub issues][issues-image]][issues-url]\n[![GitHub forks][fork-image]][fork-url]\n[![GitHub Stars][stars-image]][stars-url]\n[![License][license-image]][license-url]\n\n# My vision for pychain\nMy vision for this project is to have it be used to enable everyone to use blockchain technology to ensure the entegrity of any process that they are responsible for.\n\nWhat does that mean? Simply that with deploying *pychain* into your production pipeline, you will be adding an immutable record to any process that you generate. Not only will this make all of your transactions transparent, but will also allow anyone with access to your system to verify the integrity your product.\n\n## Transaction Class\nThe *Transaction Class* will be very generic so that it can be used in any application. A generic *Transaction* object will have the following features:\n\n* **trans_id**: ID for the *Transaction*\n* **user_id**: ID of the user creating the *Transaction*\n* **subject_id**: ID of the subject that is affected by the *Transaction*\n* **desc**: Description for the *Transaction*\n* **payload**: A *json* object with all of the details of the transaction.\n\n## Block Class\nThe *Block Class* will take your transaction object and adds it to the *Block*. The *Block* objects will have the following features:\n\n* **index**: ID for the *Block*\n* **timestamp**: Creation date\n* **transactions**: A list of *Transaction* objects.\n* **previous_hash**: The hash of the previous *Block*\n* **hash**: The hash of this *Block*\n\n## Blockchain Class\nThis class will bring it all together. When a *Blockchain* object is created, you will have the option of loading an existing *Blockchain*. This will allow anyone authorized to be able to join the blockchain at anytime. It will also have the option to add other nodes that are already part of the network. These options by default will not be used, allowing for the *pychain* to be used in a private network without it being to be distributed.\n\nThis is what it will be able to do:\n\n* **Instantiate** a new *Blockchain*\n* **Generate a Genesis** *Block* for new *Blockchain*\n* **Add network nodes**\n* **Load** existing *Blockchains*\n* **Add new *Blocks*** and **generate new *Block* ID's**\n* **Validate *Blocks***\n* **Display the *Blockchain*** for review\n* **Consensus** of the most current *Blockchain* with all other nodes on the network, if any\n\n[python-version]:https://img.shields.io/badge/python-3.6%2B-brightgreen.svg\n[travis-image]:https://travis-ci.org/clamytoe/pychain.svg?branch=master\n[travis-url]:https://travis-ci.org/clamytoe/pychain\n[bch-image]:https://bettercodehub.com/edge/badge/clamytoe/pychain?branch=master\n[bch-url]:https://bettercodehub.com/\n[issues-image]:https://img.shields.io/github/issues/clamytoe/pychain.svg\n[issues-url]:https://github.com/clamytoe/pychain/issues\n[fork-image]:https://img.shields.io/github/forks/clamytoe/pychain.svg\n[fork-url]:https://github.com/clamytoe/pychain/network\n[stars-image]:https://img.shields.io/github/stars/clamytoe/pychain.svg\n[stars-url]:https://github.com/clamytoe/pychain/stargazers\n[license-image]:https://img.shields.io/github/license/clamytoe/pychain.svg\n[license-url]:https://github.com/clamytoe/pychain/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Fpychain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclamytoe%2Fpychain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Fpychain/lists"}