{"id":15074362,"url":"https://github.com/raphadam/goblock","last_synced_at":"2026-01-03T13:06:43.125Z","repository":{"id":254976755,"uuid":"844088956","full_name":"raphadam/goblock","owner":"raphadam","description":"🔗 Bloсkсhаiո using proof-of-work, protobuf, grpc and custom discovery made in go.","archived":false,"fork":false,"pushed_at":"2024-08-27T08:17:14.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T00:11:15.267Z","etag":null,"topics":["concurrency","distributed","encryption","golang","gossip","grpc","proof-of-work"],"latest_commit_sha":null,"homepage":"","language":"Go","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/raphadam.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-08-18T10:56:18.000Z","updated_at":"2024-08-27T08:17:18.000Z","dependencies_parsed_at":"2024-08-27T09:48:58.585Z","dependency_job_id":null,"html_url":"https://github.com/raphadam/goblock","commit_stats":null,"previous_names":["raphadam/goblock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphadam%2Fgoblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphadam%2Fgoblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphadam%2Fgoblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphadam%2Fgoblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphadam","download_url":"https://codeload.github.com/raphadam/goblock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864822,"owners_count":20360360,"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":["concurrency","distributed","encryption","golang","gossip","grpc","proof-of-work"],"created_at":"2024-09-25T03:32:33.712Z","updated_at":"2026-01-03T13:06:43.039Z","avatar_url":"https://github.com/raphadam.png","language":"Go","readme":"![Logo](docs/logo.png)\n\n## Introduction\n\nLightweight and easy to understand chain implementation written in Go. This project features a Proof of Work consensus mechanism, gRPC for inter-node communication and a custom gossip protocol for node discovery.\n\n## Features\n\n- **Proof of Work Consensus:** Nodes calculate a nonce for a given difficulty to mine blocks.\n- **gRPC Communication:** Nodes communicate using gRPC for efficient, language-agnostic messaging.\n- **Custom Gossip Protocol:** A handmade gossip protocol is used for peer discovery and network resilience.\n- **Merkle Root Verification:** Transactions are verified using Merkle trees, ensuring data integrity.\n- **SHA-256 Hashing:** Blocks are hashed using the secure SHA-256 algorithm.\n- **Ed25519 Key Pairing:** Public/private key cryptography is implemented using Ed25519 for secure transaction signing.\n- **Adjustable Difficulty:** The mining difficulty can be dynamically adjusted to control block creation times.\n\n## Architecture and Design\n\n![Architecture Diagram](docs/graph.png)\n\n- **Block:** The core data structure containing transactions, a nonce, previous block hash, and more.\n- **chain:** The distributed ledger, storing the chain of blocks.\n- **Node:** Each peer in the network, responsible for mining, validating, and propagating blocks.\n- **Gossip Protocol:** Custom protocol for node discovery and message propagation.\n\n## Getting Started\n\n### Prerequisites\n- Go 1.22+ installed on your machine.\n\n### Installation\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/raphadam/goblock.git\n   ```\n2. Navigate to the project directory:\n   ```sh\n   cd goblock\n   ```\n3. Install dependencies:\n   ```sh\n   go mod tidy\n   ```\n4. Run the chain node:\n   ```sh\n   go run ./cmd\n   ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphadam%2Fgoblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphadam%2Fgoblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphadam%2Fgoblock/lists"}