We describe the Lockchain Protocol, a lightweight Bitcoin meta-protocol that enables highly efficient transaction discovery at zero marginal block space cost, and data verification without introducing any new on-chain storage mechanism. The protocol repurposes the mandatory 4-byte nLockTime field of every Bitcoin transaction as a compact metadata header. By constraining values to an unused range of past Unix timestamps greater than or equal to 500,000,000, the field can encode a protocol signal, type, variant, and sequence identifier while remaining fully valid under Bitcoin consensus and policy rules. The primary contribution of the protocol is an efficient discovery layer. Indexers can filter candidate transactions by examining a fixed-size header field, independent of transaction payload size, and only then selectively inspect heavier data such as OP RETURN outputs or witness fields. The Lockchain Protocol applies established protocol design patterns to an under-optimised problem domain, namely transaction discovery at scale, and does not claim new cryptographic primitives or storage methods.
翻译:本文描述Lockchain协议,这是一种轻量级比特币元协议,能够以零边际区块空间成本实现高效的交易发现,并在不引入任何新型链上存储机制的前提下完成数据验证。该协议将每个比特币交易中强制存在的4字节nLockTime字段重新用作紧凑型元数据头。通过将字段值限制在大于等于500,000,000的未使用历史Unix时间戳范围内,该字段可在完全符合比特币共识与策略规则的前提下,编码协议信号、类型、变体及序列标识符。本协议的核心贡献在于构建了高效的发现层:索引器可通过检查固定长度的头部字段筛选候选交易(该过程与交易载荷大小无关),随后再有选择性地解析OP_RETURN输出或见证字段等较重的数据。Lockchain协议将成熟的协议设计模式应用于尚未充分优化的领域——即大规模交易发现问题,且不依赖新型密码学原语或存储方法。