Toccata 101 · Part 1 · card 7
Like most human inventions, timekeeping formed to fulfil needs of measurement. From food calculations, like when to plant and when to harvest, to industrial factory needs and train timetables. Each period conceptualized and formed time to its needs. One of the most urgent needs was measuring the day and night. Different reasons, spanning from astrology to counting finger joints, led to the number 12 becoming the number of parts (hours) inside day and night, with 24 of those parts making a full day. The number 60, which has its own vast span of uses through history as well as some connection to the number 12, ended up as the number of minutes in an hour and seconds in a minute.
A second was originally just 1/86,400 of a mean solar day (24 [hours a day] x 60 [minutes an hour] x 60 [seconds a minute]). But Earth's rotation isn't perfectly steady, and when humans developed better measurement tech, the definition changed to an atomic one: the duration of 9,192,631,770 cycles of radiation from a caesium-133 atom.
Those methods of counting time are familiar and comfy for us but as the headline suggests, it's for humans. The Kaspa network uses a different kind of counting, for its own needs.
A block's blue score is its selected parent's blue score plus the number of blue blocks in its merge set.
Illustration: 6 total blue blocks, blue score is 6.
A block's blue work is its selected parent's blue work plus the work of each blue block in its merge set.
Unix time in milliseconds, stored as a single integer. The node that builds the template writes it from its own clock. Consensus accepts it only if it is strictly after the past median time. Each checking node also rejects it if it is more than 132 seconds ahead of that node's clock.
Take the timestamps of 27 sampled blocks from a block's past, one in every 100, sort them, and average the 11 values closest to the centre. That value is the past median time. A new block's timestamp must be above it, and a lock naming a date is measured against it.