706 / 736RUNE

Runes

在 Bitcoin UTXO 上追踪的同质化代币

Runes 是在 Bitcoin 上创建、mint 和转移同质化单位的应用协议;指令存于 OP_RETURN runestones,indexer 按 ord 参考代码重建状态。

Bitcoin consensus 验证普通交易及 scripts,却没有 Rune balances;与 ord 规范行为兼容的软件解释 etching、mint terms、edicts、allocations、burns 与 cenotaphs。

Runes 把 Bitcoin UTXO 上的同质化单位作为应用状态追踪。协议在区块 840 000 激活,忽略更早 runestones;它既不是新的 Bitcoin asset type,也不是 consensus 变更。 [4]

首个以 OP_RETURN OP_13 开头的 output 承载 runestone payload。Indexer 拼接后续 data pushes,解码 128 位 LEB128 integers,再解析 etching、mint、pointer 与 edicts;找到首项后不会尝试后续匹配 outputs。 [1]

Etching 创建 BLOCK:TX 格式 Rune ID,可设置 name、divisibility、symbol、premine 及含 amount、cap 和 height 或 offset 窗口的 open mint terms。显示名称或符号不证明供应有限,完整 etching transaction 与 terms 才是依据。 [1]

Inputs 中的 runes 连同 mint 和 premine 起初都为 unallocated。Edicts 把它们分配到 outputs,余量去 pointer 指定项,否则去首个 non-OP_RETURN output。构造错误可能误送或销毁单位。 [1]

ord 代码是 Runes 的规范,文档与代码冲突时以实际代码行为为准。Bitcoin full nodes 验证交易,不验证 Rune 名称、supply、mint cap 或 balances;indexers 必须对应用状态达成一致。 [2]

格式错误的 runestone 称为 cenotaph。未知偶数 tag 或 flag、错误 varint、无效 output index 或 pointer 等解析失败可销毁全部 input runes;etching 会变成 supply 为零且不可 mint,失败 mint 还可能占用 cap。 [1]

名称自激活后按每 17 500 个区块逐步解锁。非保留名称需在 input witness tapscript 中包含 commitment,所花费 output 至少有六次 confirmations;Turbo 明确接受可能提高 light-client 验证成本的未来协议变更。 [1]

验证需查看 Rune ID、etching transaction、准确 ord 版本、premine、divisibility、mint terms、已执行 mint 数、edicts、pointer、cenotaph 及当前 UTXO allocations。交易所 ticker 或单一 wallet balance 不能证明 supply 或 ownership。 [3]

要获得更完整的理解,请将本词条与以下词条结合阅读: Ordinals Inscriptions, OP_RETURN, UTXO, Bitcoin Script, Fee Rate, RGB Protocol. 反向关联还来自: BRC-20.

01Bitcoin full nodes 会验证 Runes 吗?

不会。Full nodes 验证 Bitcoin 交易及其 OP_RETURN data,但不计算 Rune balances,也不执行 etching、mint、edicts 规则;这些由 ord 或兼容 indexer 完成。

02Rune 等同于 inscription 或 BRC-20 token 吗?

不同。Runes 使用二进制 runestone messages 与 UTXO allocations;inscription 把内容绑定到 sat,BRC-20 则是具有自身索引规则的独立 metaprotocol。

DOC · 001Ordinal Theory Handbook — Runes Specification规范 DOC · 002ord — Runes reference implementation一手来源 DOC · 003Ordinal Theory Handbook — Wallet Guide文档 DOC · 004ord — README一手来源
修订日期: 来源优先 · 非投资建议