{"id":15606695,"url":"https://github.com/od-c0d3r/blockchain-ruby","last_synced_at":"2025-03-29T14:15:37.581Z","repository":{"id":134692019,"uuid":"466535841","full_name":"od-c0d3r/blockchain-ruby","owner":"od-c0d3r","description":"Blockchain is a system of recording information in a way that makes it difficult or impossible to change, hack, or cheat the system.","archived":false,"fork":false,"pushed_at":"2022-03-11T06:54:00.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T14:50:02.135Z","etag":null,"topics":["blockchain","cryptocurrency","ruby","sha256"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/od-c0d3r.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":"2022-03-05T18:27:10.000Z","updated_at":"2022-03-07T04:41:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"9978cb52-4a82-4649-8a10-b8cdd4adcfe5","html_url":"https://github.com/od-c0d3r/blockchain-ruby","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/od-c0d3r%2Fblockchain-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/od-c0d3r%2Fblockchain-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/od-c0d3r%2Fblockchain-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/od-c0d3r%2Fblockchain-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/od-c0d3r","download_url":"https://codeload.github.com/od-c0d3r/blockchain-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246193257,"owners_count":20738452,"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","cryptocurrency","ruby","sha256"],"created_at":"2024-10-03T04:41:39.997Z","updated_at":"2025-03-29T14:15:37.571Z","avatar_url":"https://github.com/od-c0d3r.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align='right' src=\"https://user-images.githubusercontent.com/24830039/156899959-a4a50eab-9f2b-41e1-9bad-9c5aa69488c0.png\"\u003e\n\n_⚠️ For education purposes only. This is by no means a complete implementation and it is by no means secure!_\n\n## Contents\n- [Contents](#contents)\n- [Oreo Coin Blockchain](#oreo-coin-blockchain)\n- [Information](#information)\n  - [What is a Block ?](#what-is-a-block-)\n  - [What is a Blockchain ?](#what-is-a-blockchain-)\n- [Usages](#usages)\n- [To do](#to-do)\n\n## Oreo Coin Blockchain\nA Blockchain ruby app to keep track of OreoCoin Cryptocurrency transactions ( or anY type of data you want ) this project is bassed on [Creating a blockchain with Javascript](https://www.youtube.com/watch?v=zVqczFZr124) tutorial, and I translated it to ruby to practice both languages. \n\n## Information\n### What is a Block ?\nIn simple words, block is an object that stores mainly three things \n1. `Data` =\u003e Any data you want to store for example: a `transaction`\n1. Its `Hash` =\u003e a digital fingerprint\n1. Previous block's `Hash`=\u003e previous block finger print\n\n### What is a Blockchain ?\n- Easy : Blockchain is a system of recording information in a way that makes it difficult or impossible to change, hack, or cheat the system.\n- Hard : A blockchain is a decentralized, distributed, and oftentimes public, digital ledger consisting of records called blocks that is used to record any type of data (the most famous appliction is cryptocurrency transactions)\n- [Video explanation](https://www.youtube.com/watch?v=SSo_EIwHSd4)\n\n## Usages\n- Clone the repo `git clone https://github.com/od-c0d3r/blockchain-ruby.git`\n- Run `bundle install` to install dependencies.\n- Run `ruby main.rb` on project root\n\n## To do\n- Blockchain class\n  - \u003cstrike\u003e Add auto id counter for adding block to the chain \u003c/strike\u003e \n  - Verify blockchain (to prevent tampering)\n- Simple proof-of-work algorithm\n- Generate wallet (private/public key)\n- Sign transactions\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fod-c0d3r%2Fblockchain-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fod-c0d3r%2Fblockchain-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fod-c0d3r%2Fblockchain-ruby/lists"}