{"id":37027894,"url":"https://github.com/twostack/bitcoin4j","last_synced_at":"2026-01-14T03:19:19.158Z","repository":{"id":43232355,"uuid":"373366959","full_name":"twostack/bitcoin4j","owner":"twostack","description":"Bitcoin SV Library for Java","archived":false,"fork":false,"pushed_at":"2024-06-20T00:07:22.000Z","size":4664,"stargazers_count":21,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-20T12:55:58.229Z","etag":null,"topics":["bitcoin","blockchain","bsv","hacktoberfest","java"],"latest_commit_sha":null,"homepage":"https://www.twostack.org/products","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twostack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-03T03:14:14.000Z","updated_at":"2024-06-20T02:07:39.000Z","dependencies_parsed_at":"2024-06-20T12:10:59.429Z","dependency_job_id":"9d7afaee-59af-4cac-adce-bed6d23cb61f","html_url":"https://github.com/twostack/bitcoin4j","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/twostack/bitcoin4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twostack%2Fbitcoin4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twostack%2Fbitcoin4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twostack%2Fbitcoin4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twostack%2Fbitcoin4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twostack","download_url":"https://codeload.github.com/twostack/bitcoin4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twostack%2Fbitcoin4j/sbom","scorecard":{"id":904401,"data":{"date":"2025-08-11","repo":{"name":"github.com/twostack/bitcoin4j","commit":"dc1b0cec689c57ce5ce7d0cd0c9a57cce4c5b19d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/gradle.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gradle.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/twostack/bitcoin4j/gradle.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gradle.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/twostack/bitcoin4j/gradle.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: Apache License 2.0: COPYING:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T16:48:53.575Z","repository_id":43232355,"created_at":"2025-08-24T16:48:53.576Z","updated_at":"2025-08-24T16:48:53.576Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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","blockchain","bsv","hacktoberfest","java"],"created_at":"2026-01-14T03:19:18.619Z","updated_at":"2026-01-14T03:19:19.148Z","avatar_url":"https://github.com/twostack.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n![Java CI](https://github.com/twostack/bitcoin4j/workflows/Java%20CI%20with%20Gradle/badge.svg)\n\n## Overview\n\nBitcoin4J is a Bitcoin library for the Java Language licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt).  \n\nThis library has been built in line with the ideals espoused by [BitcoinSV](https://bitcoinsv.io), \ni.e. massive on-chain scaling, protocol stability and original-bitcoin-protocol implementation.\n\n### Learn More about BitcoinSV\nYou can learn more about BitcoinSV by visiting : \n* [TwoStack Bitcoin Developer Guide](https://www.twostack.org/docs/getting-started/)\n* [TwoStack Youtube Channel](https://youtube.com/twostack)\n* [Bitcoin Association Website](https://bitcoinsv.io) \n* [BitcoinSV Wiki](https://wiki.bitcoinsv.io/).\n\n## Installation\nBinaries for the library are [available on Maven Central](https://search.maven.org/artifact/org.twostack/bitcoin4j/1.6.6/jar). \n\n\n### Gradle Dependencies\n```gradle\nimplementation(\"org.twostack:bitcoin4j:1.6.6\")\n```\n\n### Maven Dependencies\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.twostack\u003c/groupId\u003e\n  \u003cartifactId\u003ebitcoin4j\u003c/artifactId\u003e\n  \u003cversion\u003e1.6.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Clean Transaction Builder\nSeveral helper classes and APIs exist to make constructing Transactions more intuitive.\n\n[See the full example source code](https://github.com/twostack/data-transaction/blob/main/src/main/kotlin/main.kt)\n\nAs a native Java implementation, the library integrates well with other JVM languages, e.g. Kotlin. \n```kotlin\n    val txBuilder: TransactionBuilder = TransactionBuilder()\n    val spendingTx: Transaction = txBuilder.spendFromTransaction(aliceFundingTx, 1, Transaction.NLOCKTIME_MAX_VALUE, unlockBuilder)\n        .spendTo(bobLockingBuilder, BigInteger.valueOf(10000))\n        .sendChangeTo(aliceAddress, aliceLockingBuilder)\n        .withFeePerKb(512)\n        .build(true)\n```\n\n## Features\n\n* Unbounded Transaction Types (creating non-standard transactions)\n* HD Key Derivation \\(BIP32\\)\n* Mnemonic Seed Support \\(BIP39\\)\n* Original Bitcoin Address format \n* A built-in Bitcoin Script Interpreter\n* Custom-Script Builder Interface to support novel locking/spending conditions within Script\n    * P2PKH Transaction Builder - Pay to Pubkey Hash standard Transactions \n    * P2MS Transaction Builder - Pay to Multisig. This is naked MultiSig (the proper way to do multisig).\n    * P2PK Transaction Builder - Pay to Public Key standard Transactions\n    * P2SH Transaction Builder - Pay to Script Hash. This should be considered deprecated. BitcoinSV Nodes support this for backwards compatibility only.\n    * P2PKHDataLockBuilder - This is something new. Create a spendable data output. Spendable using P2PKH Transaction. \n    * UnspendableDataLockBuilder - OP_RETURN-style Data builder. Prepends a Transaction Output Script with OP_FALSE OP_RETURN followed by a series of data pushes.\n\n### Deprecated Features\nThe following features represent forks away from the original Bitcoin Protocol.\n\nThis library lacks, and does not implement :\n\n* Segregated Witness \\(Segwit\\) Transaction support (Bitcoin Core - BTC)\n* Schnorr Transaction Signature support (Bitcoin Cash - BCH)\n* Check Datasig \\(OP\\_CHECKDATASIG\\) (Bitcoin Cash - BCH)\n* Taproot (Bitcoin Core - BTC)\n\n## Acknowledgement\n\nThis library is a fork of the BitcoinJ and BitcoinJ-Cash projects. Contributor acknowledgements have been preserved in the AUTHORS file.  \n\n## Contact\n\nYou can reach the author at : stephan@twostack.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwostack%2Fbitcoin4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwostack%2Fbitcoin4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwostack%2Fbitcoin4j/lists"}