| Copyright | (c) 2025 Jared Tobin |
|---|---|
| License | MIT |
| Maintainer | Jared Tobin <jared@ppad.tech> |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- crc32c :: ByteString -> Word32
Documentation
crc32c :: ByteString -> Word32 Source #
Compute CRC-32C of a bytestring.
>>>crc32c "123456789"0xe3069283