{"id":16246859,"url":"https://github.com/chjj/mako","last_synced_at":"2025-04-04T18:08:43.543Z","repository":{"id":39581141,"uuid":"428357167","full_name":"chjj/mako","owner":"chjj","description":"Bitcoin node written in C","archived":false,"fork":false,"pushed_at":"2024-08-16T15:56:48.000Z","size":5986,"stargazers_count":579,"open_issues_count":15,"forks_count":49,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-10-20T01:14:51.724Z","etag":null,"topics":["bitcoin","blockchain","c","cryptocurrency"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chjj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-11-15T17:22:11.000Z","updated_at":"2024-09-26T18:04:20.000Z","dependencies_parsed_at":"2024-10-20T15:52:05.004Z","dependency_job_id":null,"html_url":"https://github.com/chjj/mako","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/chjj%2Fmako","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chjj%2Fmako/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chjj%2Fmako/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chjj%2Fmako/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chjj","download_url":"https://codeload.github.com/chjj/mako/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226215,"owners_count":20904465,"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":["bitcoin","blockchain","c","cryptocurrency"],"created_at":"2024-10-10T14:34:18.128Z","updated_at":"2025-04-04T18:08:43.528Z","avatar_url":"https://github.com/chjj.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# mako\n\n__mako__ is a from-scratch bitcoin reimplementation, written in \"almost-C89\"\n(i.e. it can be compiled by a C89 compiler if `\u003cstdint.h\u003e` is available -- no\nother C99 features are used).\n\nMako is more-or-less dependency-less. It only vendors [lcdb]. Mako aims to\nsupport any POSIX.1-2001 operating system as well as Windows XP and up.\n\nMako has a re-usable architecture. The core library (libmako) does no IO, and\nhas almost every tool needed for working with bitcoin. The fullnode (libnode)\nis also a separate library which the final executable links to.\n\n## Development Status\n\n__Do not use mako in production__. Mako is under heavy development and almost\nguaranteed to have a significant amount of bugs at this point in time.\n\nThe node itself is currently incomplete for various reasons, including:\n\n- A number of RPC calls are missing (notably essential things like\n  `getblocktemplate`).\n- The _entire_ wallet RPC is currently missing, along with the wallet itself.\n- Consensus \u0026 policy rules are _mostly_ complete: mako supports softforks up to\n  and including segwit, but not later additions like taproot.\n- A number of tests still need to be written.\n- Mako passes all of the transaction and script test vectors from bitcoin core,\n  but there's no telling what consensus issue may arise in its current state.\n\n## Build \u0026 Usage (for experimentation only)\n\nSo far, mako has only been tested on Linux and Win32 (cross-compiled with\nmingw).\n\n``` sh\n$ cmake . -DCMAKE_C_FLAGS=-g -DCMAKE_BUILD_TYPE=Release\n$ make\n```\n\nThe above will produce two binaries: `mako and makod`. The arguments mimic\n`bitcoin-cli` and `bitcoind` respectively.\n\n## Background\n\nThere are a few reasons mako needed to exist:\n\n- Because it is C, all data structures and primitives are written by hand and\n  are not subject to any particular platform's implementation of them. On top\n  of that, mako makes very sparing use of the C standard library. This makes\n  mako more auditable than a bitcoin implementation written in [C++][cxx], JS,\n  Rust, Go, etc.\n- A low-level, portable, and re-usable codebase for bitcoin is useful for a\n  number of projects.\n- Contrary to what some people might tell you, multiple implementations of a\n  protocol are a good thing. In bitcoin's case, they are _necessary_ to\n  mitigate the harm of developer centralization.\n- The bitcoin protocol itself should be recorded in as many places as possible\n  for posterity.\n- Mako is planned to be used as the base for a port to the [handshake][hns]\n  protocol, among other things.\n\n## Contribution and License Agreement\n\nIf you contribute code to this project, you are implicitly allowing your code\nto be distributed under the MIT license. You are also implicitly verifying that\nall code is your original work. `\u003c/legalese\u003e`\n\n## License\n\n- Copyright (c) 2021-2022, Christopher Jeffrey (MIT License).\n\nSee LICENSE for more info.\n\n[lcdb]: https://github.com/chjj/lcdb\n[cxx]: http://harmful.cat-v.org/software/c++/linus\n[hns]: https://handshake.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchjj%2Fmako","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchjj%2Fmako","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchjj%2Fmako/lists"}