Type 销毁锁 约束Type Burn Lock Constraints
来源:ckb-devrel/ckb-proxy-locks / contracts/type-burn-lock/src/entry.rs · 0xff78…f53a (data1,主网与测试网相同)Source: ckb-devrel/ckb-proxy-locks / contracts/type-burn-lock/src/entry.rs · 0xff78…f53a (data1, same on mainnet and testnet)
ckb-proxy-locks
- GitHubGitHubgithub.com/ckb-devrel/ckb-proxy-locks
来源:Source: repo (no website/docs listed)
A销毁指定 type 即可解锁Unlock by burning a given type
Inputs 输入Inputs
inputCell{ lock: { codeHash: TYPE_BURN, args: type_hash 32B } }
被销毁的 cellburnt cellCell{ type: hash = type_hash }
➜
Outputs 输出Outputs
outputs:无该 typeoutputs: none with that type任意(不能含 type_hash)any (none with type_hash)
args 字节布局args byte layout
type_hash32B
- type_hash 32B 需销毁的 type 脚本哈希type script hash to burn 在输入中、不在输出中in inputs, not in outputs (6)
限制Constraints
- args ≥ 32 字节≥ 32 bytes (4)
- burn:: 有输入的 type hash = args[0..32],且没有输出带该 typean input has type hash = args[0..32] and no output has it (6)
部署与来源Deployments & source 未核验unverified
源码source ckb-devrel/ckb-proxy-locks@38b7e1df · contracts/type-burn-lock/src/entry.rs (default-branch HEAD recorded at backfill 2026-10-21; spec/plugin were written from the default branch shortly before (exact read commit not recorded))
二进制核验binary check 未核验unverified no binary or checksum at the recorded commit matched the deployed data hash (reproducible build not attempted)
| 网络network | code_hash | cell_dep | type_id args | 数据哈希data hash | 部署交易deploy tx |
|---|---|---|---|---|---|
| mainnet | 0xff78bae0abf17d7a404c0be0f9ad9c9185b3f88dcc60403453d5ba8e1f22f53a data1 | 0x10d63a9961…160eb66b:5 code | — | 0xff78bae0ab…1f22f53a | 0x10d63a9961…160eb66b #13589704 |
| testnet | 0xff78bae0abf17d7a404c0be0f9ad9c9185b3f88dcc60403453d5ba8e1f22f53a data1 | 0xb4f171c9c9…a3137b93:5 code | — | 0xff78bae0ab…1f22f53a | 0xb4f171c9c9…a3137b93 #14025090 |
链上数据核对于 on-chain data checked 2026-10-20
错误码(error.rs):1 IndexOutOfBound · 2 ItemMissing · 3 LengthNotEnough · 4 Encoding · 5 Overflow · 6 TypeScriptNotBurntError codes (error.rs): 1 IndexOutOfBound · 2 ItemMissing · 3 LengthNotEnough · 4 Encoding · 5 Overflow · 6 TypeScriptNotBurnt
不检查任何签名:安全性完全来自 args 指向的其他脚本No signature is checked: security comes entirely from the script that args points to
不检查任何签名:安全性完全来自 args 指向的其他脚本No signature is checked: security comes entirely from the script that args points to