All lessons · Developer tooling · Start here · Glossary
Decoding InvalidDepGroup OutPointsWorkingFrom one fix
From one fix · Check: right · Checked 2026-11-19
InvalidDepGroup prints the OutPoint in molecule encoding: a 32-byte tx_hash followed by a 4-byte little-endian index. Reverse the index bytes, then match only dep_group cell_deps on both tx_hash and index.
Why it matters: If the hex index is read as written, an index like 02000000 decodes as 0x2000000 instead of 2, and matching code cell deps as well wrongly blames a dep that shares the same outpoint, so the failing dependency group cannot be located.
Pattern
parse InvalidDepGroup(OutPoint(0x<64 hex><8 hex LE index>)), reverse the index bytes, match against dep_group cell_depsA test changed in the same commit
It sits next to the fix. We did not run it.
- Hanssen0-Alter-Ego/ckb-vm-js:
tests/browser/workbench.spec.js,tests/js/guided.test.js
- Concepts
- Cell deps and script lookup, Data encoding (molecule, hex, bigints)
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-11-16
- Last changed
- 2026-11-16
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (1)
- 2026-11-16 · Hanssen0-Alter-Ego/ckb-vm-js · more from this project
More about Developer tooling
- Matching a Script code_hash to its code Cell by hash_type
- Mock transactions must expand dep_group members
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Decoding InvalidDepGroup OutPoints", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/decoding-invaliddepgroup-outpoints, CC BY 4.0, last changed 2026-11-16.