输入 Type 代理锁 约束Input Type Proxy Lock Constraints

来源:ckb-devrel/ckb-proxy-locks / contracts/input-type-proxy-lock/src/entry.rs · 0x5123…768a (data1,主网与测试网相同)Source: ckb-devrel/ckb-proxy-locks / contracts/input-type-proxy-lock/src/entry.rs · 0x5123…768a (data1, same on mainnet and testnet)
Lock 脚本Lock script代理 / 工具Proxy / utility主网Mainnet测试网Testnet开源Open sourceNervos 官方Nervos

A由 owner 脚本授权解锁Unlock authorised by the owner script

Inputs 输入Inputs
inputCell{ lock: { codeHash: PROXY, args: owner_hash 32B ‖ … } }
owner cellowner cell输入中有 cell 的 type hash = owner_hashan input cell's type hash = owner_hash
➜
Outputs 输出Outputs
outputs:任意outputs: any任意any
args 字节布局args byte layout
owner_hash32B
…*
  • owner_hash 32B owner 脚本哈希owner script hash 输入中有 cell 的 type hash 与之相等an input cell's type hash equals it (6)
  • … * 忽略ignored ——

限制Constraints

  • args ≥ 32 字节≥ 32 bytes (4)
  • owner:: 输入中有 cell 的 type hash = args[0..32]an input cell's type hash = args[0..32] (6)
部署与来源Deployments & source 未核验unverified
源码source ckb-devrel/ckb-proxy-locks@38b7e1df · contracts/input-type-proxy-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)
网络networkcode_hashcell_deptype_id args数据哈希data hash部署交易deploy tx
mainnet0x5123908965c711b0ffd8aec642f1ede329649bda1ebdca6bd24124d3796f768a data10x10d63a9961…160eb66b:1 code—0x5123908965…796f768a0x10d63a9961…160eb66b #13589704
testnet0x5123908965c711b0ffd8aec642f1ede329649bda1ebdca6bd24124d3796f768a data10xa5ef4970ba…8a5ad274:0 code0xf6e3f3c4e2…5310d8bf0x5123908965…796f768a0xa5ef4970ba…8a5ad274 #22729959
链上数据核对于 on-chain data checked 2026-10-20
错误码(error.rs):1 IndexOutOfBound · 2 ItemMissing · 3 LengthNotEnough · 4 Encoding · 5 Overflow · 6 InvalidUnlockError codes (error.rs): 1 IndexOutOfBound · 2 ItemMissing · 3 LengthNotEnough · 4 Encoding · 5 Overflow · 6 InvalidUnlock
不检查任何签名:安全性完全来自 args 指向的其他脚本No signature is checked: security comes entirely from the script that args points to
GitHub · gpBlockchain/ckb-contract-flow-html