{"id":20879490,"url":"https://github.com/prakhar301101/mychain","last_synced_at":"2026-04-25T13:34:41.838Z","repository":{"id":246896017,"uuid":"824537604","full_name":"Prakhar301101/MyChain","owner":"Prakhar301101","description":"Blockchain made in Java","archived":false,"fork":false,"pushed_at":"2024-07-11T15:54:33.000Z","size":7298,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T09:43:14.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Prakhar301101.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":"2024-07-05T10:46:02.000Z","updated_at":"2024-07-11T15:54:36.000Z","dependencies_parsed_at":"2024-07-11T18:05:27.608Z","dependency_job_id":null,"html_url":"https://github.com/Prakhar301101/MyChain","commit_stats":null,"previous_names":["prakhar301101/mychain"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar301101%2FMyChain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar301101%2FMyChain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar301101%2FMyChain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar301101%2FMyChain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prakhar301101","download_url":"https://codeload.github.com/Prakhar301101/MyChain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243258497,"owners_count":20262297,"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-18T07:16:42.180Z","updated_at":"2025-12-27T17:09:27.554Z","avatar_url":"https://github.com/Prakhar301101.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eMyChain is a blockchain made with JAVA.\u003c/h1\u003e\n\n\u003cp\u003e\nA blockchain is a chain/list of blocks.Each block in the blockchain will contain data, its own digital fingerprint, also the fingerprint of previous block so as to maintain integrity.\n\nThe fingerprint is also known as the Hash Value.\nA block contains 2 Hash values its own and the previous block's, the hash value is calculated with the data and cryptographic algorithms like SHA256, so any change in the value will lead to inconsistency in the hash values leading to the blockchain being invalid.\n\n\u003c/p\u003e\n\n\u003ch3\u003eHow to create Blocks on MyChain\u003c/h3\u003e\n\u003cp\u003e\nJust use the \u003cspan\u003e\u003cb\u003ecreateBlock\u003c/b\u003e\u003c/span\u003e function, send your string data as parameter and call the createBlock function.\nThe createBlock function creates a Block object by using the data, the previous block's hash and the calculated hash value of the current block.\n\u003c/p\u003e\n\n\u003ch3\u003eTo view the Blockchain\u003c/h3\u003e\n\u003cp\u003eUse the \u003cspan\u003e\u003cb\u003eview_Chain\u003c/b\u003e\u003c/span\u003e function to get the information of the blockchain in JSON format.\nA library called gson is used to convert the output string into JSON data.\n\u003c/p\u003e\n\n\u003ch3\u003eTo check integrity of the Blockchain\u003c/h3\u003e\n\u003cp\u003eUse the \u003cspan\u003e\u003cb\u003eisValid\u003c/b\u003e\u003c/span\u003e function.\nIt works by comparing the hash values between the current and previous blocks \n \u003c/p\u003e\n\n\u003ch3\u003eAll about blockchain mining!\u003c/h3\u003e\n\u003cp\u003e\nMining the blockchain refers to the process of validating and adding new transactions to the blockchain.\nHere’s a simplified explanation of what it involves:\n\u003cul\u003e\n\u003cli\u003e\u003cb\u003eCollecting Transactions:\u003c/b\u003e Miners collect a group of pending transactions from the network into a block.\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eSolving a Puzzle:\u003c/b\u003e Miners compete to solve a complex mathematical puzzle that is part of the Proof of Work (PoW) system. This puzzle involves finding a specific number (nonce) that, when combined with the block data and passed through a cryptographic hash function, produces a hash that meets certain criteria (usually starts with a specific number of zeros).\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eFinding the Solution:\u003c/b\u003e The first miner to solve the puzzle finds the correct nonce and thus creates a valid block.\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eBroadcasting the Block:\u003c/b\u003e The miner broadcasts the new block to the entire network.\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eVerification:\u003c/b\u003e Other nodes in the network quickly verify the solution to ensure it is correct and that the block follows all the network rules.\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eAdding the Block:\u003c/b\u003e Once verified, the block is added to the blockchain, making the transactions in that block permanent and secure.\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eReward:\u003c/b\u003e The successful miner is rewarded with newly created cryptocurrency (block reward) and any transaction fees included in the transactions within the block.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cb\u003eFor mining Mychain, adjust the difficulty according to your pc's computational power.\u003c/b\u003e\n\n\u003c/p\u003e\n\n\u003ch2\u003eWallets, Transactions \u0026 Cryptocurrencies\u003c/h2\u003e\n\u003cb\u003eIn Progress!!!!!\u003c/b\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar301101%2Fmychain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprakhar301101%2Fmychain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar301101%2Fmychain/lists"}