{"id":19311936,"url":"https://github.com/propilideno/blockchain","last_synced_at":"2026-02-12T07:05:28.312Z","repository":{"id":251538154,"uuid":"837702533","full_name":"propilideno/blockchain","owner":"propilideno","description":"Blockchain implementation using Go + Fiber","archived":false,"fork":false,"pushed_at":"2024-08-11T22:57:01.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T00:40:59.941Z","etag":null,"topics":["bitcoin","blockchain","crypto","ethereum","fiber","go","smart-contracts","web3"],"latest_commit_sha":null,"homepage":"","language":"Go","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/propilideno.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":"2024-08-03T19:00:13.000Z","updated_at":"2024-08-14T04:06:49.000Z","dependencies_parsed_at":"2024-08-03T20:26:03.079Z","dependency_job_id":"d5454add-733b-4318-9494-db78f1b7bc31","html_url":"https://github.com/propilideno/blockchain","commit_stats":null,"previous_names":["propilideno/blockchain"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/propilideno/blockchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propilideno%2Fblockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propilideno%2Fblockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propilideno%2Fblockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propilideno%2Fblockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/propilideno","download_url":"https://codeload.github.com/propilideno/blockchain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propilideno%2Fblockchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29360750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bitcoin","blockchain","crypto","ethereum","fiber","go","smart-contracts","web3"],"created_at":"2024-11-10T00:31:34.407Z","updated_at":"2026-02-12T07:05:28.282Z","avatar_url":"https://github.com/propilideno.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockchain\nThe best way to learn blockchain is by building one. This repository guides you from creating a basic blockchain to understanding advanced concepts, providing hands-on experience along the way. Dive in and start your blockchain journey today!\n\n## [Simple Blockchain](./0-simple-blockchain/README.md)\n```\ndocker run -p 7000:7000 propilideno/simple-blockchain\n```\n\n```mermaid\nclassDiagram\n    direction LR\n\n    class Blockchain {\n        +Block[] Chain\n        +int Difficulty\n        +Transaction[] MemoryPool\n        +Block mine()\n        +void addTransaction(transaction Transaction)\n        +bool isValid()\n    }\n\n    class Block {\n        +Transaction[] Transactions\n        +string PreviousHash\n        +string Hash\n        +time.Time Timestamp\n        +int Nonce\n        +string calculateHash()\n        +void mine(difficulty int)\n    }\n\n    Blockchain \"1\" --\u003e \"*\" Block : contains\n\n    Block \u003c|-- Block1 : PreviousHash\n    Block1 \u003c|-- Block2 : PreviousHash\n    Block2 \u003c|-- Block3 : PreviousHash\n    Block3 \u003c|-- Block4 : PreviousHash\n\n```\n#### Routes\n- GET /chain\n- GET /memorypool\n- GET /mine\n- POST /transactions/new\n    - body: `{ \"from\": \"Lucas\", \"to\": \"Filipe\", \"amount\": 10 }`\n#### Lacks of\n- Transaction validation\n- Persistence\n- Miner Reward\n- Descentralization\n    - P2P Network\n    - Node discovery\n\n## [Simple Transactional Blockchain](./1-simple-transactional-blockchain/README.md)\n```\ndocker run -p 7000:7000 propilideno/simple-transactional-blockchain\n```\n```mermaid\nclassDiagram\n    direction LR\n\n    class Blockchain {\n        +Block[] Chain\n        +int Difficulty\n        +float64 RewardPerBlock\n        +float64 MaxCoins\n        +float64 getMinedCoins()\n        +float64 getBalance(address string)\n        +bool isValid()\n        +Block mine(miner string) Block\n        +void addBlockData(data BlockData)\n    }\n\n    class Block {\n        +BlockData[] Data\n        +BlockReward Reward\n        +string PreviousHash\n        +string Hash\n        +time.Time Timestamp\n        +int Nonce\n        +string calculateHash()\n        +void mine(difficulty int)\n    }\n\n    Blockchain \"1\" --\u003e \"*\" Block : contains\n\n    Block \u003c|-- Block1 : PreviousHash\n    Block1 \u003c|-- Block2 : PreviousHash\n    Block2 \u003c|-- Block3 : PreviousHash\n    Block3 \u003c|-- Block4 : PreviousHash\n```\n#### Routes\n- GET /info?wallet=**wallet_id**\n- GET /chain\n- GET /memorypool\n- GET /mine?wallet=**wallet_id**\n- POST /data/new\n    - body: `{ \"from\": \"Lucas\", \"to\": \"Filipe\", \"amount\": 10 }`\n\n## Lacks of\n- Persistence\n- Descentralization\n    - P2P Network\n    - Node discovery\n\n#### Lacks of\n- Persistence\n- Descentralization\n    - P2P Network\n    - Node discovery\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpropilideno%2Fblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpropilideno%2Fblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpropilideno%2Fblockchain/lists"}