Skip to content
Back to skills

Btcsuite

ASecurity

btcsuite: collection of Go Bitcoin libraries. btcec (secp256k1), btcutil (helpers), txscript (Script engine), wire (P2P). USE WHEN: building Bitcoin Go apps, integrating with LND / btcd.

  • 31 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentsgogitapibackend

Works with

  • api

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add claude-dev-suite/claude-dev-suite --skill btcsuite --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Btcsuite?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Btcsuite
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/claude-dev-suite-btcsuite/badge)](https://www.skillsdirectory.com/skills/claude-dev-suite-btcsuite)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bitcoin-libraries-btcsuite
description: |
  btcsuite: collection of Go Bitcoin libraries. btcec (secp256k1),
  btcutil (helpers), txscript (Script engine), wire (P2P).
  USE WHEN: building Bitcoin Go apps, integrating with LND / btcd.
allowed-tools: Read, Grep, Glob
---

# btcsuite Libraries

Collection of Go libraries powering btcd and LND.

GitHub org: `github.com/btcsuite`.

## Major libraries

### btcec
secp256k1 wrapper. ECDSA, Schnorr, ECDH.
```go
import "github.com/btcsuite/btcd/btcec/v2"

priv, _ := btcec.NewPrivateKey()
pub := priv.PubKey()
sig := ecdsa.Sign(priv, msgHash[:])
```

### btcutil
Helpers: addresses, networks, base58, bech32.
```go
import "github.com/btcsuite/btcd/btcutil"

addr, _ := btcutil.DecodeAddress("bc1q...", &chaincfg.MainNetParams)
```

### txscript
Bitcoin Script engine and helpers.
```go
import "github.com/btcsuite/btcd/txscript"

builder := txscript.NewScriptBuilder()
builder.AddOp(txscript.OP_DUP).AddOp(txscript.OP_HASH160)
builder.AddData(hashBytes)
builder.AddOp(txscript.OP_EQUALVERIFY).AddOp(txscript.OP_CHECKSIG)
script, _ := builder.Script()
```

### wire
P2P message types, serialization.
```go
import "github.com/btcsuite/btcd/wire"

msg := &wire.MsgVersion{...}
buf := bytes.NewBuffer(nil)
wire.WriteMessage(buf, msg, wire.ProtocolVersion, wire.MainNet)
```

### chaincfg
Network parameters.

## Use cases

- Backend services in Go consuming Bitcoin data.
- LND ecosystem integrations (LND uses btcsuite extensively).
- Tools like `chantools`, `loopd`, `poold`.

## Common pitfalls

- API stability mostly OK; minor breaking changes between major
  versions.
- v2 of btcec is API-different from v1.

## See also

- [btcd/SKILL.md](../btcd/SKILL.md)
- [lnd-go/SKILL.md](../lnd-go/SKILL.md)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…