{"id":23305862,"url":"https://github.com/mmsaki/blockchain","last_synced_at":"2025-04-06T23:47:04.104Z","repository":{"id":48911821,"uuid":"517063355","full_name":"mmsaki/blockchain","owner":"mmsaki","description":"A blockchain app using streamlit in python.","archived":false,"fork":false,"pushed_at":"2022-07-23T14:57:05.000Z","size":926,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T05:45:46.690Z","etag":null,"topics":["dataclasses","hashlib","pychain","python","streamlit-webapp","typing","web3py"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mmsaki.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}},"created_at":"2022-07-23T13:19:48.000Z","updated_at":"2024-08-27T11:40:27.000Z","dependencies_parsed_at":"2022-09-11T22:02:14.504Z","dependency_job_id":null,"html_url":"https://github.com/mmsaki/blockchain","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/mmsaki%2Fblockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmsaki%2Fblockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmsaki%2Fblockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmsaki%2Fblockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmsaki","download_url":"https://codeload.github.com/mmsaki/blockchain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569132,"owners_count":20959758,"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":["dataclasses","hashlib","pychain","python","streamlit-webapp","typing","web3py"],"created_at":"2024-12-20T12:14:27.482Z","updated_at":"2025-04-06T23:47:04.078Z","avatar_url":"https://github.com/mmsaki.png","language":"Python","readme":"# PyChain Ledger\n\nI created a blockchain app using python. There are three main dataclasses I wrote for this app. **Record, Block and Pychain**. I used sha256 from Hashlib library to create the hashes for the pychain. The default difficulty for the **proof of work** function can be adjusted by a slider on the streamlit app. The pychain ledger will be printed as a dataframe object on the app.\n\nTo test the app, clone this repo to a direcotory in your local machine. Then follow the following steps.\n\nUsing terminal, get into the blockhain directory:\n\n```\ncd blockchain\n```\n\nIf you have streamlit installed. Run the app on your terminal:\n\n```\nstreamlit run pychain.py\n```\n\nOtherwise install streamlit using `pip install streamlit` and then run the `pychain.py` app.\n\nTo interact with the pychain ledger, provide input values for `sender`, `receiver` and `amount`.\n\nOnce you get the app running, it should look like this:\n\n!['Stream lit screenshot'](./images/pychain_screenshot.jpg)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmsaki%2Fblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmsaki%2Fblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmsaki%2Fblockchain/lists"}