{"id":13650653,"url":"https://github.com/chaintope/bitcoinrb","last_synced_at":"2026-02-07T09:00:52.994Z","repository":{"id":46125224,"uuid":"94193706","full_name":"chaintope/bitcoinrb","owner":"chaintope","description":"The implementation of the bitcoin protocol for ruby.","archived":false,"fork":false,"pushed_at":"2025-12-30T02:08:26.000Z","size":34395,"stargazers_count":66,"open_issues_count":1,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-01-02T11:20:40.013Z","etag":null,"topics":["bitcoin","blockchain","ruby"],"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/chaintope.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-06-13T09:12:00.000Z","updated_at":"2025-12-30T02:08:29.000Z","dependencies_parsed_at":"2024-04-14T20:45:44.836Z","dependency_job_id":"d172500e-f82a-4414-8cc9-3152384450c9","html_url":"https://github.com/chaintope/bitcoinrb","commit_stats":{"total_commits":906,"total_committers":16,"mean_commits":56.625,"dds":0.5209713024282561,"last_synced_commit":"98acd6293fa2c4d948aa674f636c80ddeb4dbdb1"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/chaintope/bitcoinrb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Fbitcoinrb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Fbitcoinrb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Fbitcoinrb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Fbitcoinrb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaintope","download_url":"https://codeload.github.com/chaintope/bitcoinrb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Fbitcoinrb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29190842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","ruby"],"created_at":"2024-08-02T02:00:38.962Z","updated_at":"2026-02-07T09:00:52.985Z","avatar_url":"https://github.com/chaintope.png","language":"Ruby","readme":"# Bitcoinrb [![Build Status](https://github.com/chaintope/bitcoinrb/actions/workflows/ruby.yml/badge.svg?branch=master)](https://github.com/chaintope/bitcoinrb/actions/workflows/ruby.yml) [![Gem Version](https://badge.fury.io/rb/bitcoinrb.svg)](https://badge.fury.io/rb/bitcoinrb) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) \u003cimg src=\"http://segwit.co/static/public/images/logo.png\" width=\"100\"\u003e\n\nBitcoinrb is a Ruby implementation of Bitcoin Protocol.\n\nNOTE: Bitcoinrb work in progress, and there is a possibility of incompatible change. \n\n## Features\n\nBitcoinrb supports following feature:\n\n* [Bitcoin script interpreter](https://github.com/chaintope/bitcoinrb/wiki/Script)(including [BIP-65](https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki), [BIP-68](https://github.com/bitcoin/bips/blob/master/bip-0068.mediawiki), [BIP-112](https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki))\n* [De/serialization of Bitcoin protocol network messages](https://github.com/chaintope/bitcoinrb/wiki/P2P-Message)\n* De/serialization of blocks and [transactions](https://github.com/chaintope/bitcoinrb/wiki/Transaction)\n* Key generation and verification for ECDSA, including [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) and [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) supports.\n* ECDSA signature(RFC6979 -Deterministic ECDSA, LOW-S, LOW-R support)\n* Segwit support (parsing segwit payload, Bech32 address, sign for segwit tx, [BIP-141](https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki), [BIP-143](https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki), [BIP-144](https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki))\n* bech32([BIP-173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)) and bech32m([BIP-350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki)) address support\n* [BIP-174](https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki) PSBT(Partially Signed Bitcoin Transaction) support\n* [BIP-85](https://github.com/bitcoin/bips/blob/master/bip-0085.mediawiki) Deterministic Entropy From BIP32 Keychains support by `Bitcoin::BIP85Entropy` class.\n* Schnorr signature([BIP-340](https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki))\n* Taproot consensus([BIP-341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki) and [BIP-342](https://github.com/bitcoin/bips/blob/master/bip-0342.mediawiki))\n* [Output script descriptor](https://github.com/chaintope/bitcoinrb/wiki/Output-Script-Descriptor) ([BIP-380](https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki), [BIP-381](https://github.com/bitcoin/bips/blob/master/bip-0381.mediawiki), [BIP-382](https://github.com/bitcoin/bips/blob/master/bip-0382.mediawiki), [BIP-383](https://github.com/bitcoin/bips/blob/master/bip-0383.mediawiki), [BIP-384](https://github.com/bitcoin/bips/blob/master/bip-0384.mediawiki), [BIP-385](https://github.com/bitcoin/bips/blob/master/bip-0385.mediawiki), [BIP-386](https://github.com/bitcoin/bips/blob/master/bip-0386.mediawiki), [BIP-387](https://github.com/bitcoin/bips/blob/master/bip-0387.mediawiki), [BIP-390](https://github.com/bitcoin/bips/blob/master/bip-0390.mediawiki))\n\n## Requirements\n\n### use Node implementation\n\nIf you use node features, please install level DB as follows.\n\n#### install LevelDB\n\n* for Ubuntu\n\n    $ sudo apt-get install libleveldb-dev\n\n+ for Mac\n\n    $ brew install leveldb\n\nand put `leveldb-native` in your Gemfile and run bundle install.\n\n```ruby\ngem 'leveldb-native'\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bitcoinrb', require: 'bitcoin'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install bitcoinrb\n\nAnd then add to your .rb file:\n\n    require 'bitcoin'\n\n## Usage\n\nExamples can be found on the [wiki](https://github.com/chaintope/bitcoinrb/wiki).\n\n### Chain selection\n\nThe parameters of the blockchain are managed by `Bitcoin::ChainParams`. Switch chain parameters as follows:\n\n* mainnet\n\n```ruby\nBitcoin.chain_params = :mainnet\n```\n\nThis parameter is described in https://github.com/chaintope/bitcoinrb/blob/master/lib/bitcoin/chainparams/mainnet.yml.\n\n* testnet\n\n```ruby\nBitcoin.chain_params = :testnet\n# or\nBitcoin.chain_params = :testnet4\n```\n\nThis parameter is described in https://github.com/chaintope/bitcoinrb/blob/master/lib/bitcoin/chainparams/testnet.yml.\n\n* regtest\n\n```ruby\nBitcoin.chain_params = :regtest\n```\n\nThis parameter is described in https://github.com/chaintope/bitcoinrb/blob/master/lib/bitcoin/chainparams/regtest.yml.\n\n* default signet\n\n```ruby\nBitcoin.chain_params = :signet\n```\n\nThis parameter is described in https://github.com/chaintope/bitcoinrb/blob/master/lib/bitcoin/chainparams/signet.yml.\n\n## Test\n\nThis library can use the [libsecp256k1](https://github.com/bitcoin-core/secp256k1/) dynamic library.\nTherefore, some tests require this library. In a Linux environment, `spec/lib/libsecp256k1.so` is already located,\nso there is no need to do anything. If you want to test in another environment,\nplease set the library path in the environment variable `TEST_LIBSECP256K1_PATH`.\n\nIn case the supplied linux `spec/lib/libsecp256k1.so` is not working (architecture), you might have to compile it yourself.\nSince if available in the repository, it might not be compiled using the `./configure --enable-module-recovery` option.\nThen `TEST_LIBSECP256K1_PATH=/path/to/secp256k1/.libs/libsecp256k1.so rspec` can be used.\n\nThe libsecp256k1 library currently tested for operation with this library is `v0.4.0`.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bitcoinrb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","funding_links":[],"categories":["Ruby Libraries","Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaintope%2Fbitcoinrb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaintope%2Fbitcoinrb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaintope%2Fbitcoinrb/lists"}