{"id":20277390,"url":"https://github.com/bitjson/bitcoin-cpp-script","last_synced_at":"2025-07-28T06:09:34.829Z","repository":{"id":69519670,"uuid":"84146467","full_name":"bitjson/bitcoin-cpp-script","owner":"bitjson","description":"Work in Progress (status: nothing yet...)","archived":false,"fork":false,"pushed_at":"2017-03-08T04:04:07.000Z","size":46,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T01:41:51.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/bitjson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-03-07T02:45:57.000Z","updated_at":"2017-10-26T05:45:40.000Z","dependencies_parsed_at":"2023-02-26T05:00:56.559Z","dependency_job_id":null,"html_url":"https://github.com/bitjson/bitcoin-cpp-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitjson/bitcoin-cpp-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitjson%2Fbitcoin-cpp-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitjson%2Fbitcoin-cpp-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitjson%2Fbitcoin-cpp-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitjson%2Fbitcoin-cpp-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitjson","download_url":"https://codeload.github.com/bitjson/bitcoin-cpp-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitjson%2Fbitcoin-cpp-script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267470062,"owners_count":24092352,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-11-14T13:18:15.353Z","updated_at":"2025-07-28T06:09:34.802Z","avatar_url":"https://github.com/bitjson.png","language":"C++","readme":"# bitcoin-cpp-script\n\n[![Build Status](https://travis-ci.org/bitjson/bitcoin-cpp-script.svg?branch=master)](https://travis-ci.org/bitjson/bitcoin-cpp-script)\n\n** (Work in progress) **\n\nSimple CLI to execute programs in Bitcoin Script using the interpreter from the [reference implementation](https://github.com/bitcoin/bitcoin/).\n\n## Requirements\n\n- `git`\n- `cmake` version `2.8` or higher.\n- `gcc` or `clang` that supports `std=c++11`.\n\n## Installation\n\nGenerate build files with:\n\n```bash\ngit clone --recursive git@github.com:bitjson/bitcoin-cpp-script.git\ncd bitcoin-cpp-script\n./make.sh\n\ncd build\n\n# use CLI\n./bitcoin-cpp-script [hex-encoded script]\n# execute tests\n./tests\n```\n\nIf you don't use `git clone --recursive`,  you'll have to manually setup the submodules with:\n\n```\n$ git submodule update --init --recursive\n```\n\n## Usage\n\n```bash\n./bitcoin-cpp-script [hex-encoded script]\n```\n\n## Project Structure\n\n### `./src` is where code goes\n\nWhen you add a new file, don't forget to update `CMakeLists.txt` and execute `cmake` again.\n\n```\nadd_library(core\n\t# add your *.cpp here\n\t)\n```\n\n### `./test` is where tests go\n\nSame as `src`, when you add a new file, you have to update `CMakeLists.txt` and execute `cmake` again.\n\n```\nadd_executables(tests\n\t./tests/main-test.cpp\n\t# add your *-test.cpp here\n\t)\n```\n\n### `./third-party` hosts third party libraries\n\nThey don't necessarily have to be submodules. You probably have to `add_subdirectory` and `include_directories` in `CMakeLists.txt`.\n\n### `./build` holds `cmake` generated files and the executables\n\nIf you want to build from scratch again, you can just delete `build` and start again.\n\n## License\n\nMIT, see [LICENSE.md](./LICENSE.md) for more details.\n\n## Boilerplate\n\nThis project was created using the fantastic C++11 starter project by `vaalentin`: [cpp-boilerplate](https://github.com/vaalentin/cpp-boilerplate).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitjson%2Fbitcoin-cpp-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitjson%2Fbitcoin-cpp-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitjson%2Fbitcoin-cpp-script/lists"}