{"id":15201968,"url":"https://github.com/demining/rust-bitcoin-google-colab","last_synced_at":"2025-08-12T01:21:05.161Z","repository":{"id":144620977,"uuid":"460602547","full_name":"demining/rust-bitcoin-Google-Colab","owner":"demining","description":"Rust Bitcoin library Google Colab","archived":false,"fork":false,"pushed_at":"2022-07-02T01:12:35.000Z","size":9907,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"0.12-version","last_synced_at":"2025-04-12T12:57:46.950Z","etag":null,"topics":["bitcoin","bitcoin-api","bitcoin-core","bitcoin-payment","bitcoin-transaction","bitcoin-wallet","colab","colab-notebook","colab-notebooks","colab-tutorial","colaboratory","google-colab","google-colab-notebook","google-colab-tutorial","google-colaboratory","google-colaboratory-notebooks"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/demining.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":"2022-02-17T20:46:21.000Z","updated_at":"2024-08-12T20:20:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f82d171-0f6a-4195-88c8-c00fcb5015ff","html_url":"https://github.com/demining/rust-bitcoin-Google-Colab","commit_stats":{"total_commits":278,"total_committers":16,"mean_commits":17.375,"dds":0.1618705035971223,"last_synced_commit":"7c51d3889189f2bee317c0668d991b15435b56bf"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/demining/rust-bitcoin-Google-Colab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Frust-bitcoin-Google-Colab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Frust-bitcoin-Google-Colab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Frust-bitcoin-Google-Colab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Frust-bitcoin-Google-Colab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demining","download_url":"https://codeload.github.com/demining/rust-bitcoin-Google-Colab/tar.gz/refs/heads/0.12-version","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Frust-bitcoin-Google-Colab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269983002,"owners_count":24507501,"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-08-11T02:00:10.019Z","response_time":75,"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","bitcoin-api","bitcoin-core","bitcoin-payment","bitcoin-transaction","bitcoin-wallet","colab","colab-notebook","colab-notebooks","colab-tutorial","colaboratory","google-colab","google-colab-notebook","google-colab-tutorial","google-colaboratory","google-colaboratory-notebooks"],"created_at":"2024-09-28T04:00:16.844Z","updated_at":"2025-08-12T01:21:05.106Z","avatar_url":"https://github.com/demining.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Status](https://travis-ci.org/rust-bitcoin/rust-bitcoin.png?branch=master)](https://travis-ci.org/rust-bitcoin/rust-bitcoin)\n\n-------------------------\n### Run rust-bitcoin-Google-Colab\n\nhttps://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing\n\n-------------------------\n\nLibrary with support for de/serialization, parsing and executing on data\nstructures and network messages related to Bitcoin and other blockchain-based\ncurrencies.\n\n[Documentation](https://docs.rs/bitcoin/)\n\nSupports (or should support)\n\n* De/serialization of Bitcoin protocol network messages\n* De/serialization of blocks and transactions\n* Script de/serialization\n* Private keys and address creation, de/serialization and validation (including full BIP32 support)\n* Pay-to-contract support as in Appendix A of the [Blockstream sidechains whitepaper](https://www.blockstream.com/sidechains.pdf)\n\nFor JSONRPC interaction with Bitcoin Core, it is recommended to use [rust-jsonrpc](https://github.com/apoelstra/rust-jsonrpc)\nwhich uses the underlying [strason library](https://github.com/apoelstra/strason)\nwhich parses decimal numbers as strings, preventing precision errors.\n\n# Usage\n\nTo use rust-bitcoin, just add the following to your Cargo.toml.\n\n```toml\n[dependencies]\nbitcoin = \"0.12\"\n```\n\n# Known limitations\n\n## Consensus\n\nThis library **must not** be used for consensus code (i.e. fully validating\nblockchain data). It technically supports doing this, but doing so is very\nill-advised because there are many deviations, known and unknown, between\nthis library and the Bitcoin Core reference implementation. In a consensus\nbased cryptocurrency such as Bitcoin it is critical that all parties are\nusing the same rules to validate data, and this library is simply unable\nto implement the same rules as Core.\n\nGiven the complexity of both C++ and Rust, it is unlikely that this will\never be fixed, and there are no plans to do so. Of course, patches to\nfix specific consensus incompatibilities are welcome.\n\n## Documentation\n\nCurrently the [documentation](https://www.wpsoftware.net/rustdoc/bitcoin/)\nis very sparse. Patches to add usage examples and to expand on existing\ndocs would be extremely appreciated.\n\n\n# Policy on Altcoins/Altchains\n\nPatches which add support for non-Bitcoin cryptocurrencies by adding constants\nto existing enums (e.g. to set the network message magic-byte sequence) are\nwelcome. Anything more involved will be considered on a case-by-case basis,\nas the altcoin landscape includes projects which [frequently appear and\ndisappear, and are poorly designed anyway](https://download.wpsoftware.net/bitcoin/alts.pdf)\nand keeping the codebase maintainable is a large priority.\n\nIn general, things that improve cross-chain compatibility (e.g. support for\ncross-chain atomic swaps) are more likely to be accepted than things which\nsupport only a single blockchain.\n\n\n## Release Notes\n\nI will try to document all breaking changes here so that people upgrading will know\nwhat they need to change.\n\n### 0.11\n\nRemove `num` dependency at Matt's request; agree this is obnoxious to require all\ndownstream users to also have a `num` dependency just so they can use `Uint256::from_u64`.\n\n### 0.12\n\n* The in-memory blockchain was moved into a dedicated project rust-bitcoin-chain.\n\n* Removed old script interpreter\n\n* A new optional feature \"bitcoinconsenus\" lets this library use Bitcoin Core's native\nscript verifier, wrappend into Rust by the rust-bitcoinconsenus project. \nSee `Transaction::verify` and `Script::verify` methods.\n\n* Replaced Base58 traits with `encode_slice`, `check_encode_slice`, from and `from_check` functions in the base58 module.\n\n* Un-reversed the Debug output for Sha256dHash\n\n* Add bech32 support\n\n* Support segwit address types\n\n### 0.13\n\n* Move witnesses inside the `TxIn` structure\n\n* Add `Transaction::get_weight()`\n\n* Update bip143 `sighash_all` API to be more ergonomic\n\n\n----\n\n|  | Donation Address |\n| --- | --- |\n| ♥ __BTC__ | 1Lw2kh9WzCActXSGHxyypGLkqQZfxDpw8v |\n| ♥ __ETH__ | 0xaBd66CF90898517573f19184b3297d651f7b90bf |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Frust-bitcoin-google-colab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemining%2Frust-bitcoin-google-colab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Frust-bitcoin-google-colab/lists"}