ppad-bolt7-0.0.1: Routing gossip per BOLT #7
Copyright(c) 2025 Jared Tobin
LicenseMIT
MaintainerJared Tobin <jared@ppad.tech>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lightning.Protocol.BOLT7.CRC32C

Description

CRC-32C (Castagnoli) implementation for BOLT #7 checksums.

This is an internal helper module implementing CRC-32C as specified in RFC 3720. CRC-32C uses the Castagnoli polynomial 0x1EDC6F41.

Synopsis

Documentation

crc32c :: ByteString -> Word32 Source #

Compute CRC-32C of a bytestring.

>>> crc32c "123456789"
0xe3069283