Todas as lições · Developer tooling · Começa aqui · Glossário
Identify script groups by type and hashPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
In CKB the same script hash can be both a lock script group and a type script group in one transaction, and each group has its own input and output indices. When selecting or reporting a script group, for example from a verifier's group list, match on group type together with script hash, never on the hash alone.
Porque importa: Matching by hash alone can return the lock group's members when the type group was selected (or the reverse), so the tool reports the wrong inputs and outputs for the verified group.
Um 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
- Witnesses and signatures, Other
- 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
- Charging load_program bytes as cycles when building a custom ckb-vm machine
- ckb-cli deploy info file layout for offline multisig signing
- ckb-cli needs --skip-check to sign and send transactions with custom locks
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Identify script groups by type and hash", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/identify-script-groups-by-type-and-hash, CC BY 4.0, last changed 2026-11-16.