SfppHash

Computes Store-Forward-Plus-Plus (SFPP) message hashes for deduplication.

The hash is SHA-256(payload || to_LE32 || from_LE32 || id_LE32) truncated to 16 bytes.

Functions

Link copied to clipboard
fun compute(payload: ByteArray, to: Int, from: Int, id: Int): ByteArray

Compute the SFPP deduplication hash for a message.