CKB Pulse
Lessons

What CKB learned

Start here · Glossary · Test yourself · Feed

toastmanAu/ckb-watch-visualiser

Lessons from toastmanAu/ckb-watch-visualiser

github.com/toastmanAu/ckb-watch-visualiser

Do you maintain this project? Confirm its lessons in one issue

1 lessons found. All lessons

Decoding the packed epoch field (number, index, length)WorkingSeen again

A CKB header epoch field packs the epoch number in the low 24 bits, the index in the next 16 bits (shift 24) and the epoch length in the next 16 bits (shift 40). When estimating time to a target epoch from the tip, subtract the fraction already spent (index * epoch duration / length) and guard against length 0 to avoid division by zero.

#Since and time locks #Data encoding (molecule, hex, bigints) · Sources (3) · 2026-11-10

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.