# 使用 Homebrew 安装 bcoin

查看 bcoin 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:bcoin
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bcoin
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:bcoin
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bcoin>
- **版本:** 2.2.0
- **来源摘要:** Javascript bitcoin library for node.js and browsers
- **主页:** <https://github.com/bcoin-org/bcoin>
- **仓库:** <https://github.com/bcoin-org/bcoin>
- **上游文档:** <https://bcoin.io/api-docs>
- **许可证:** MIT
- **源码归档:** <https://github.com/bcoin-org/bcoin/archive/refs/tags/v2.2.0.tar.gz>
- **最后更新:** 2026-07-09T19:01:12+09:00
- **已生成:** 2026-07-10T07:20:53+00:00

## 可执行文件

- bcoin (cli)
- bcoin-cli (cli)
- bcoin-node (cli)
- bcoin-spvnode (cli)
- bwallet (cli)
- bwallet-cli (cli)
- bcoin (别名)
- bcoin-cli (别名)
- bcoin-node (别名)
- bcoin-spvnode (别名)
- bwallet (别名)
- bwallet-cli (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-10
- 管理器版本: 2.2.0
- 管理器更新时间: 2026-07-09
- 本地数据: OK
- 上游仓库: https://github.com/bcoin-org/bcoin
- 检测到的最新版本: v2.2.0 (当前)
## 项目历史与用法

bcoin is an alternative Bitcoin protocol implementation written for Node.js, with full-node, SPV-node, wallet, mining-backend, layer-2-backend, and library use cases.

### 项目历史

The GitHub repository was created in 2014. The README describes bcoin as an alternative implementation of the Bitcoin protocol in JavaScript and C/C++ for Node.js, aware of known consensus rules and usable as a production consensus backend and wallet system.

The project reached a 1.0.0 tag after a beta series and later published 2.x releases, while retaining command-line entry points such as bcoin, bcoin-cli, bcoin-node, bwallet, and bwallet-cli.

### 采用历史

bcoin's adoption is more specialized than general Bitcoin Core tooling. Its README names Purse.io as a production user and frames bcoin as a library/backend for services that want Bitcoin protocol behavior inside a Node.js stack.

In package-manager terms, Homebrew packaging made the node and wallet CLIs easy to install on developer workstations, but the supplied package facts show a narrower package-manager footprint than older Unix utilities.

### 使用方式

Developers use bcoin as a full node, SPV node, wallet backend, mining backend with getblocktemplate support, layer-2 backend, or general-purpose Bitcoin library.

Configuration and API credentials are commonly placed in bcoin and wallet config files under ~/.bcoin, including network-specific subdirectories.

### 为什么软件包爱好者会关心

bcoin is package-nerd interesting because it packages a cryptocurrency full-node stack as a Node.js developer tool, rather than as the canonical C++ Bitcoin Core lineage.

It represents a period when alternative protocol implementations mattered for ecosystem diversity, service integration, and testing assumptions against more than one codebase.

### 时间线

- 2014: GitHub repository created.
- 2017: README copyright range includes Christopher Jeffrey through 2017 and documents production use.
- 2018: v1.0.0-era release tags established after beta tags.
- 2020s: v2.x tags published; Homebrew continues to package the CLI.

### Related projects

- Bitcoin Core is the canonical Bitcoin implementation that bcoin contrasts with as an alternative implementation.
- Node.js and npm-style application stacks are the natural integration environment.
- Wallet, SPV, mining, and Lightning/layer-2 systems are listed upstream as bcoin use cases.

### 来源

- <https://bcoin.io/api-docs>
- <https://bcoin.io/docs>
- <https://github.com/bcoin-org/bcoin>
- <https://github.com/bcoin-org/bcoin/blob/master/README.md>
- source_facts.package-manager


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.bcoin/bcoin.conf, ~/.bcoin/wallet.conf, ~/.bcoin/<network>/bcoin.conf, ~/.bcoin/<network>/wallet.conf

## Credential files

- Unix: ~/.bcoin/bcoin.conf, ~/.bcoin/wallet.conf, ~/.bcoin/<network>/bcoin.conf, ~/.bcoin/<network>/wallet.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bcoin
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [cql](https://www.automicvault.com/zh-hans/pkg/brew/cql/) - Shares av.db curated category or tags: blockchain, cli, data.
- [ioctl](https://www.automicvault.com/zh-hans/pkg/brew/ioctl/) - Shares av.db curated category or tags: blockchain, cli, data.
- [adios2](https://www.automicvault.com/zh-hans/pkg/brew/adios2/) - Shares av.db curated category or tags: cli, data.
- [alluxio](https://www.automicvault.com/zh-hans/pkg/brew/alluxio/) - Shares av.db curated category or tags: cli, data.
- [anyquery](https://www.automicvault.com/zh-hans/pkg/brew/anyquery/) - Shares av.db curated category or tags: cli, data.
- [apache-arrow](https://www.automicvault.com/zh-hans/pkg/brew/apache-arrow/) - Shares av.db curated category or tags: cli, data.
- [apache-drill](https://www.automicvault.com/zh-hans/pkg/brew/apache-drill/) - Shares av.db curated category or tags: cli, data.
- [apache-flink](https://www.automicvault.com/zh-hans/pkg/brew/apache-flink/) - Shares av.db curated category or tags: cli, data.
- [pdf2json](https://www.automicvault.com/zh-hans/pkg/npm/pdf2json/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, javascript, node, node-js.
- [protocol-buffers](https://www.automicvault.com/zh-hans/pkg/npm/protocol-buffers/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, javascript, node, node-js.
- [redis-dump](https://www.automicvault.com/zh-hans/pkg/npm/redis-dump/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, javascript, node, node-js.

## Combined YAML source

View the package source record on GitHub. [combined/bcoin.yml](https://github.com/automic-vault/db/blob/main/combined/bcoin.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
