Start here · Glossary · Test yourself · Feed
CellScript-Labs/AgoraSeal ✕
Lessons from CellScript-Labs/AgoraSeal
github.com/CellScript-Labs/AgoraSeal
Do you maintain this project? Confirm its lessons in one issue
3 lessons found. All lessons
When a release profile sets overflow-checks = true and ckb-std (here =1.1.0 with the dummy-atomic feature) supplies the single-thread __atomic polyfills, add a per-package override turning overflow checks off for ckb-std. Atomic read/modify/write arithmetic is defined to wrap, so checked arithmetic in those polyfills would panic instead of wrapping.
#Other · Sources (1) · 2026-10-07
Serialized CKB blocks may be BlockV1, which appends a consensus extension field after the Block molecule fields, so a strict packed::BlockReader::from_slice can reject them. This commit parses block bytes with ckb-gen-types 1.1.1 packed::BlockReader::from_compatible_slice, which accepts the extra field while still exposing header() and transactions().
#Data encoding (molecule, hex, bigints) · Sources (1) · 2026-10-07
When a script reads the raw transaction's cell_deps (via load_transaction) and uses a position there as a Source::CellDep index for load_cell_type_hash or load_cell_data, the mapping holds only for the leading run of dep_type code entries, because dep groups expand into their member cells and shift later indexes. This vote script restricts its proposal and deposit lookups to that direct prefix and lets wallet dep groups follow it.
#Cell deps and script lookup · Sources (1) · 2026-10-07
Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. JSON · Want a lesson changed or removed? Open an issue.