RepositoryPHP
BI

Bit-Wasp/bitcoin-php

Bitcoin implementation in PHP

1.1kstars
448forks
67issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: electrum

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: bip32

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: secp256k1

#1 Repository Của Tháng

⛏️ Thư viện Bitcoin đầy đủ bằng PHP thuần

Triển khai Bitcoin bằng PHP, không phụ thuộc runtime bên ngoài — trừ khi bạn muốn bindings libsecp256k1.

Bit-Wasp/bitcoin-php là thư viện PHP triển khai hầu hết giao thức Bitcoin bằng mã PHP thuần. Cài đặt qua Composer (composer require bitwasp/bitcoin), không hỗ trợ môi trường 32-bit.

✨ Điểm nổi bật

  • Thuần PHP: Triển khai hầu hết logic Bitcoin bằng PHP, không cần extension bắt buộc
  • P2SH & SegWit: Hỗ trợ full script P2SH và Segregated Witness
  • Giao dịch: Xây dựng, phân tích, ký và xác thực giao dịch
  • BIP32/BIP39/Electrum: Deterministic key derivation theo BIP32, seed BIP39 và định dạng Electrum cũ
  • RFC6979: Deterministic signatures theo chuẩn
  • Đường cong elliptic: Dùng PhpEcc mặc định, hoặc bindings libsecp256k1 nếu có
  • ScriptFactory: Parser, interpreter, classifier cho common input/output types
  • Stratum/Electrum: Bindings kết nối server Electrum qua protocol Stratum
  • libbitcoinconsensus: Hỗ trợ bindings kiểm tra tính hợp lệ của consensus

💡 Vì sao đáng chú ý

Thư viện này là một trong số ít triển khai Bitcoin đầy đủ bằng PHP, bao phủ từ xử lý block, merkle, bloom filter đến scripting và key derivation. Thiết kế cho phép chuyển đổi linh hoạt giữa driver elliptic-curve (PhpEcc hoặc libsecp256k1), phù hợp cả môi trường không có extension và môi trường cần hiệu năng cao.

Dự án đi kèm hệ sinh thái các thư viện liên quan: buffertools-php cho binary data, bitcoin-p2p-php cho P2P messaging, stratum-php cho Stratum protocol, và node-php cho full node toy. Phù hợp cho building wallet, payment processor, hoặc công cụ phân tích blockchain trong ecosystem PHP.


#Bitcoin #PHP #Cryptocurrency #BIP32 #SegWit #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
spesmilo/electrum

Electrum Bitcoin Wallet

8.7k
Nov 17, 2026
RepositoryJava
bitcoinj/bitcoinj

A library for working with Bitcoin

5.2k
Nov 20, 2026
RepositoryJupyter Notebook
BlockchainCommons/Learning-Bitcoin-from-the-Command-Line

A complete course for learning Bitcoin programming and usage from the command

3.4k
Nov 13, 2026
RepositoryTypeScript
paulmillr/micro-eth-signer

Minimal privacy-focused Ethereum library

237
Oct 21, 2026
RepositoryRuby
q9f/eth.rb

a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.

234
Nov 2, 2026
RepositoryC++
bitcoin/bitcoin

Bitcoin Core integration/staging tree

90.7k
Nov 19, 2026
RepositoryPython
freqtrade/freqtrade

Free, open source crypto trading bot

57.1k
Nov 19, 2026
RepositoryPython
ccxt/ccxt

A unified trading API with more than 100 crypto exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java / Rust

45.0k
Nov 23, 2026
RepositoryHTML
bitcoinbook/bitcoinbook

Mastering Bitcoin 3rd Edition - Programming the Open Blockchain

25.4k
Dec 26, 2024