Todas as lições · Developer tooling · Começa aqui · Glossário
Decoding InvalidDepGroup OutPointsPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 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.
Porque importa: 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.
Padrão
parse InvalidDepGroup(OutPoint(0x<64 hex><8 hex LE index>)), reverse the index bytes, match against dep_group cell_depsUm teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- Hanssen0-Alter-Ego/ckb-vm-js:
tests/browser/workbench.spec.js,tests/js/guided.test.js
- Conceitos
- Cell deps and script lookup, Data encoding (molecule, hex, bigints)
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-16
- Última mudança
- 2026-11-16
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-11-16 · Hanssen0-Alter-Ego/ckb-vm-js · mais deste projeto
Mais sobre 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
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Decoding InvalidDepGroup OutPoints", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/decoding-invaliddepgroup-outpoints, CC BY 4.0, last changed 2026-11-16.