从这里开始 · 术语表 · 自测 · 订阅
经验用英文撰写,请用英文搜索。
wamimi/noir-ckb-verifier ✕
来自 wamimi/noir-ckb-verifier 的经验
github.com/wamimi/noir-ckb-verifier
你维护这个项目吗? 在一个 issue 中确认它的经验
找到 3 条经验。 全部经验
To collect plain funding cells of a lock with the indexer get_cells (or get_cells_capacity) RPC, search with script_type "lock" and add filter output_data_len_range ["0x0","0x1"] and script_len_range ["0x0","0x1"]. Ranges are half-open [start, end), so this keeps only cells with empty data, and since the search is by lock, script_len_range applies to the type script, so only cells with no type script come back. Sorting by capacity on the client only sees the page returned (limit), so page through the results if the lock may own more cells than the limit.
#Indexer queries and cell collection · 来源(2) · 2026-11-05
In this deploy builder, several funding inputs all share the owner's lock. The signing witness (WitnessArgs) goes at index 0, and every other input gets an empty "0x" witness, so the witnesses list stays as long as the inputs list. That matches the secp256k1 sighash script group layout, where the first witness of the group carries the signature and covers the rest.
#Witnesses and signatures #Transaction building and fees · 来源(1) · 2026-11-05
In a ckb-std script you can load a cell's type script into a fixed 49 byte buffer with syscalls::load_cell_by_field(..., CellField::Type), then compare code_hash at bytes 16..48 and hash_type at byte 48 of the molecule Script table, without allocating for args. A short buffer returns Err(SysError::LengthNotEnough) yet still fills the buffer, so treat that error like Ok, and treat ItemMissing as a cell with no type script.
#Data encoding (molecule, hex, bigints) #Cell deps and script lookup · 来源(1) · 2026-10-07
文本采用 CC BY 4.0:请署名 LusoCryptoLabs, CKB lessons,并附上经验的链接。 JSON · 想修改或撤下某条经验?请提交 issue。