Crc32

object Crc32(source)

CRC-32 (IEEE 802.3 / zlib): reflected polynomial 0xEDB88320, initial value and final XOR 0xFFFFFFFF.

Matches the firmware's crc32Buffer (ErriezCRC32), which firmware 2.8+ uses to derive the node number from the device public key: my_node_num = crc32(config.security.public_key) (NodeDB::createNewIdentity). Lets the app recognize a pubkey-derived ("canonical") node number when a node reappears under a new num after a firmware upgrade.

Functions

Link copied to clipboard
fun compute(bytes: ByteString): UInt