CKB Pulse

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_deps

A test changed in the same commit

It sits next to the fix. We did not run it.

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)

More about Developer tooling

All 35 in this topic

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.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.