界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

bitcoin-libraries-btcd

bitcoin-libraries-btcd

【效率与协作】btcd: full-node Bitcoin implementation in Go by btcsuite. Server, RPC, wallet (btcwallet), Lightning (LND-derived). USE WHEN: building Go-native Bitcoin services, alternative to bitcoind, integrating with btcsuite ecosystem.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: bitcoin-libraries-btcd description: | btcd: full-node Bitcoin implementation in Go by btcsuite. Server, RPC, wallet (btcwallet), Lightning (LND-derived). USE WHEN: building Go-native Bitcoin services, alternative to bitcoind, integrating with btcsuite ecosystem. allowed-tools: Read, Grep, Glob

btcd

Full-node Bitcoin implementation in Go. Maintained by btcsuite team.

Repo: github.com/btcsuite/btcd.

Components

  • btcd — full node.
  • btcwallet — wallet daemon.
  • btcctl — CLI client.
  • btcec — secp256k1 binding.
  • btcutil — utilities.
  • txscript — Script engine.

Install

go install github.com/btcsuite/btcd@latest
go install github.com/btcsuite/btcd/cmd/btcctl@latest

Run

btcd --datadir=/var/lib/btcd
btcctl --rpcuser=... --rpcpass=... getblockchaininfo

Compared to bitcoind

Aspectbitcoindbtcd
LanguageC++Go
ConsensusReferenceCompatible
Mempool policyReferenceDiffers slightly
Adoption~95%<5%
LNVia separate implLND derived from btcd codebase
PerformanceBestAcceptable

Use cases

  • Go-native Bitcoin services.
  • LND historically uses btcd as backend (also supports bitcoind).
  • Educational — Go is more readable than C++.

Common pitfalls

  • Soft fork support sometimes lags Bitcoin Core.
  • Mempool standardness differences cause some txs to relay differently.
  • For production exchanges / services, bitcoind preferred.

See also

我的收藏