bsv-standards

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

BSV Standards & Protocols Reference

BSV标准与协议参考

Comprehensive index of BSV blockchain standards, protocols, and specifications.
BSV区块链标准、协议和规范的综合索引。

Quick Reference

快速参考

CategoryStandardsDescription
BRCsBRC-1 to BRC-100+Official BSV Request for Comments
BitComAIP, MAP, B, BAP, SIGMAData protocols using Bitcoin addresses as prefixes
TokensBSV-20, BSV-21, STASFungible token standards
Ordinals1Sat OrdinalsNFT inscriptions on BSV
IdentityPaymail, BAPIdentity and addressing standards
Off-Chainbitcoin-auth, bitcoin-backup, bitcoin-imageAuthentication, backup, URL standards
Data SchemaBitcoin Schema, Ord SchemaStandardized on-chain data structures
分类标准说明
BRC系列BRC-1 至 BRC-100+官方BSV请求注释(Request for Comments)
BitComAIP, MAP, B, BAP, SIGMA以比特币地址为前缀的数据协议
代币标准BSV-20, BSV-21, STAS可 fungible 代币标准
序数铭文1Sat OrdinalsBSV上的NFT铭文
身份标准Paymail, BAP身份与寻址标准
链下标准bitcoin-auth, bitcoin-backup, bitcoin-image认证、备份、URL标准
数据架构Bitcoin Schema, Ord Schema标准化链上数据结构

Official BRC Standards

官方BRC标准

Key Derivation (BRC-42, BRC-32, etc.)

密钥派生(BRC-42、BRC-32等)

BRCNameDescription
BRC-32BIP32 HD KeysHierarchical deterministic key derivation
BRC-42Type42 DerivationModern ECDH-based key derivation
BRC-43Protocol IDsSecurity levels and key ID conventions
BRC-69Key LinkageRevealing key associations
BRC-72Linkage ProtectionEncrypted linkage transmission
BRC名称说明
BRC-32BIP32 HD密钥分层确定性密钥派生
BRC-42Type42派生基于ECDH的现代密钥派生
BRC-43协议ID安全级别与密钥ID约定
BRC-69密钥关联披露密钥关联关系
BRC-72关联保护加密关联传输

Wallet Standards (BRC-1, BRC-2, etc.)

钱包标准(BRC-1、BRC-2等)

BRCNameDescription
BRC-1Transaction EnvelopeStandard transaction format
BRC-2EncryptionMessage encryption standard
BRC-29PaymailHuman-readable payment addresses
BRC名称说明
BRC-1交易信封标准交易格式
BRC-2加密消息加密标准
BRC-29Paymail人类可读的支付地址

Script Templates (BRC-48, etc.)

脚本模板(BRC-48等)

BRCNameDescription
BRC-48Pay to Push DropToken output template
BRC-100Wallet ToolboxStandard wallet implementation
BRC名称说明
BRC-48支付至Push Drop代币输出模板
BRC-100钱包工具箱标准钱包实现

Overlay Networks (BRC-22, etc.)

覆盖网络(BRC-22等)

BRCNameDescription
BRC-22Overlay NetworksNetwork topology standard
BRC-31AuthriteAuthentication protocol
BRC名称说明
BRC-22覆盖网络网络拓扑标准
BRC-31Authrite认证协议

BitCom Protocols

BitCom协议

Data protocols using Bitcoin addresses as OP_RETURN prefixes.
以比特币地址作为OP_RETURN前缀的数据协议。

AIP (Author Identity Protocol)

AIP(作者身份协议)

Prefix:
15PciHG22SNLQJXMoSUaWVi7WSqc7hCfva
Signs content with Bitcoin addresses for verifiable authorship. Similar to Sigma protocol but does not require inputs.
OP_RETURN | <data> | AIP_PREFIX | "BITCOIN_ECDSA" | <address> | <signature>
Use cases: Content authentication, author verification
前缀
15PciHG22SNLQJXMoSUaWVi7WSqc7hCfva
使用比特币地址对内容签名,实现可验证的作者身份。与Sigma协议类似,但不需要输入。
OP_RETURN | <data> | AIP_PREFIX | "BITCOIN_ECDSA" | <address> | <signature>
使用场景:内容认证、作者验证

MAP (Magic Attribute Protocol)

MAP(魔法属性协议)

Prefix:
1PuQa7K62MiKCtssSLKy1kh56WWU7MtUR5
Key-value metadata storage on-chain.
OP_RETURN | MAP_PREFIX | "SET" | "key1" | "value1" | "key2" | "value2"
Commands: SET, DEL, ADD, SELECT
Use cases: Metadata, tags, attributes, social data
前缀
1PuQa7K62MiKCtssSLKy1kh56WWU7MtUR5
链上键值元数据存储。
OP_RETURN | MAP_PREFIX | "SET" | "key1" | "value1" | "key2" | "value2"
命令:SET、DEL、ADD、SELECT
使用场景:元数据、标签、属性、社交数据

B (Binary) Protocol

B(二进制)协议

Prefix:
19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut
Arbitrary file storage on-chain.
OP_RETURN | B_PREFIX | <data> | <media-type> | <encoding> | [filename]
Use cases: Images, documents, any binary data
前缀
19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut
链上任意文件存储。
OP_RETURN | B_PREFIX | <data> | <media-type> | <encoding> | [filename]
使用场景:图片、文档、任意二进制数据

BAP (Bitcoin Attestation Protocol)

BAP(比特币证明协议)

Prefix:
1BAPSuaPnfGnSBM3GLV9yhxUdYe4vGbdMT
Identity attestation and management.
OP_RETURN | BAP_PREFIX | "ID" | <identity-key> | <address> | [attributes]
Use cases: Identity creation, attestations, key rotation
前缀
1BAPSuaPnfGnSBM3GLV9yhxUdYe4vGbdMT
身份证明与管理。
OP_RETURN | BAP_PREFIX | "ID" | <identity-key> | <address> | [attributes]
使用场景:身份创建、证明、密钥轮换

SIGMA

SIGMA

Prefix:
SIGMA
Transaction-bound signatures for OP_RETURN data.
OP_RETURN | <data> | SIGMA | <algorithm> | <address> | <signature> | <vin>
Algorithms: BSM (Bitcoin Signed Message), BRC-77 (SignedMessage)
Use cases: Multi-party signing, transaction authentication
前缀
SIGMA
绑定交易的OP_RETURN数据签名。
OP_RETURN | <data> | SIGMA | <algorithm> | <address> | <signature> | <vin>
算法:BSM(比特币签名消息)、BRC-77(SignedMessage)
使用场景:多方签名、交易认证

Token Standards

代币标准

BSV-20

BSV-20

Fungible tokens using inscription format.
json
{"p":"bsv-20","op":"deploy","tick":"TOKEN","max":"21000000","lim":"1000"}
{"p":"bsv-20","op":"mint","tick":"TOKEN","amt":"1000"}
{"p":"bsv-20","op":"transfer","tick":"TOKEN","amt":"100"}
Operations: deploy, mint, transfer, burn
使用铭文格式的可 fungible 代币。
json
{"p":"bsv-20","op":"deploy","tick":"TOKEN","max":"21000000","lim":"1000"}
{"p":"bsv-20","op":"mint","tick":"TOKEN","amt":"1000"}
{"p":"bsv-20","op":"transfer","tick":"TOKEN","amt":"100"}
操作:deploy(部署)、mint(铸造)、transfer(转账)、burn(销毁)

BSV-21

BSV-21

Enhanced fungible tokens with contract control.
Features: Programmable supply, transfer rules, metadata
具备合约控制的增强型可 fungible 代币。
特性:可编程供应量、转账规则、元数据

STAS (Simplified Token And Smart Contracts)

STAS(简化代币与智能合约)

Native token protocol using Bitcoin script-level enforcement.
Features:
  • Script-enforced token transfers (no indexer required for validation)
  • Fungible and non-fungible token support
  • Atomic swaps and contract capabilities
  • Native Bitcoin script validation
基于比特币脚本级强制执行的原生代币协议。
特性:
  • 脚本强制执行的代币转账(验证无需索引器)
  • 支持可 fungible 和不可 fungible 代币
  • 原子交换与合约能力
  • 原生比特币脚本验证

Run (Defunct)

Run(已废弃)

Early BSV token protocol (runonbitcoin.com - no longer operational).
Status: Abandoned protocol from early BSV days. Stored data on-chain using B protocol, so historical artifacts remain accessible via ORDFS (ordfs.network).
早期BSV代币协议(runonbitcoin.com - 已停止运营)。
状态:BSV早期的废弃协议。使用B协议在链上存储数据,因此历史 artifacts 可通过ORDFS(ordfs.network)访问。

Ordinals (1Sat Ordinals)

序数铭文(1Sat Ordinals)

NFT inscriptions using ordinal theory on BSV.
基于序数理论的BSV上的NFT铭文。

Inscription Format

铭文格式

OP_0 OP_IF "ord" OP_1 <content-type> OP_0 <content> OP_ENDIF
OP_0 OP_IF "ord" OP_1 <content-type> OP_0 <content> OP_ENDIF

Key Concepts

核心概念

  • Inscription: Data embedded in transaction scripts
  • Ordinal ID:
    <txid>_<vout>
    unique identifier
  • Collections: Grouped inscriptions with parent reference
  • 铭文:嵌入交易脚本中的数据
  • 序数ID
    <txid>_<vout>
    唯一标识符
  • 集合:带有父引用的分组铭文

Identity Standards

身份标准

Paymail

Paymail

Human-readable payment addressing (BRC-29).
Format:
user@domain.com
Capabilities:
  • pki
    - Public key infrastructure
  • paymentDestination
    - Get payment address
  • p2p-payment-destination
    - Peer-to-peer payments
  • receive-transaction
    - Direct transaction delivery
人类可读的支付寻址(BRC-29)。
格式
user@domain.com
功能:
  • pki
    - 公钥基础设施
  • paymentDestination
    - 获取支付地址
  • p2p-payment-destination
    - 点对点支付
  • receive-transaction
    - 直接交易交付

BAP Identity

BAP身份

On-chain identity management.
Components:
  • Root address (identity anchor)
  • Identity key (deterministic ID)
  • Attestations (claims about identity)
  • Key rotation (address transitions)
链上身份管理。
组件:
  • 根地址(身份锚点)
  • 身份密钥(确定性ID)
  • 证明(关于身份的声明)
  • 密钥轮换(地址转换)

Off-Chain Standards

链下标准

bitcoin-auth

bitcoin-auth

HTTP authentication using Bitcoin private keys.
Token Format:
pubkey|scheme|timestamp|requestPath|signature
Schemes:
brc77
(recommended),
bsm
使用比特币私钥的HTTP认证。
令牌格式
pubkey|scheme|timestamp|requestPath|signature
方案
brc77
(推荐)、
bsm

bitcoin-backup

bitcoin-backup

Encrypted backup file standard (.bep files).
Encryption: AES-256-GCM, PBKDF2-SHA256 (600k iterations)
Types: BapMasterBackup, BapMemberBackup, WifBackup, OneSatBackup, VaultBackup
加密备份文件标准(.bep文件)。
加密方式:AES-256-GCM、PBKDF2-SHA256(60万次迭代)
类型:BapMasterBackup、BapMemberBackup、WifBackup、OneSatBackup、VaultBackup

bitcoin-image

bitcoin-image

On-chain image reference normalization.
Protocols:
b://
,
ord://
,
bitfs://
,
ipfs://
,
data:
, native txid
Outpoint Formats:
txid_vout
,
txid.vout
,
txido0
,
/content/txid_vout
链上图片引用标准化。
协议
b://
ord://
bitfs://
ipfs://
data:
、原生txid
Outpoint格式
txid_vout
txid.vout
txido0
/content/txid_vout

Data Schema Standards

数据架构标准

Bitcoin Schema

Bitcoin Schema

Standardized data structures for on-chain data built on MAP and B protocols.
Types: Post, Like, Follow, Reply, Repost, Friend, Message, Payment, Ordinal
基于MAP和B协议构建的标准化链上数据结构。
类型:Post、Like、Follow、Reply、Repost、Friend、Message、Payment、Ordinal

Ord Schema Type

Ord Schema类型

Base metadata schema for ordinals inscriptions.
Required:
app
,
type
("ord"),
name
Optional:
subType
,
subTypeData
,
royalties
,
previewUrl
序数铭文的基础元数据架构。
必填项
app
type
("ord")、
name
可选项
subType
subTypeData
royalties
previewUrl

Related Packages

相关包

PackagePurpose
@bsv/sdk
Core BSV functionality
@b-open-io/templates
Script template implementations (replaces bmapjs)
js-1sat-ord
Ordinals/inscriptions (migrating to
@1sat/sdk
- in progress)
bsv-bap
BAP identity management
sigma-protocol
SIGMA signing
bitcoin-auth
HTTP authentication
bitcoin-backup
Encrypted backup files
bitcoin-image
URL normalization
Deprecated:
bmapjs
- replaced by
@b-open-io/templates
用途
@bsv/sdk
核心BSV功能
@b-open-io/templates
脚本模板实现(替代bmapjs)
js-1sat-ord
序数铭文/铭文处理(正在迁移至
@1sat/sdk
bsv-bap
BAP身份管理
sigma-protocol
SIGMA签名
bitcoin-auth
HTTP认证
bitcoin-backup
加密备份文件
bitcoin-image
URL标准化
已废弃
bmapjs
- 被
@b-open-io/templates
替代

Additional Resources

其他资源

Reference Files

参考文件

  • references/brc-index.md
    - Complete BRC specification index
  • references/bitcom-protocols.md
    - Detailed BitCom protocol specs
  • references/token-standards.md
    - BSV-20/BSV-21/1Sat Ordinals details
  • references/implementations.md
    - Local repo implementations and packages
  • references/offchain-standards.md
    - Off-chain standards (auth, backup, image)
  • references/brc-index.md
    - 完整BRC规范索引
  • references/bitcom-protocols.md
    - 详细BitCom协议规范
  • references/token-standards.md
    - BSV-20/BSV-21/1Sat Ordinals详情
  • references/implementations.md
    - 本地仓库实现与包
  • references/offchain-standards.md
    - 链下标准(认证、备份、图片)

External Links

外部链接