Builds the memory-hard workblock used for stamp proof-of-work.
Repeats expandRounds iterations, each producing 256 bytes of HKDF output
keyed on the material and salted with SHA256(material || msgpack(n)). With
the default 3000 rounds the workblock is 768 KiB — deliberately
cache-unfriendly to limit GPU/ASIC speedup.
Parameters
material: Uint8Array<ArrayBufferLike>
The 32-byte message_id (or peering_id).
OptionalexpandRounds: number = WORKBLOCK_EXPAND_ROUNDS
Builds the memory-hard workblock used for stamp proof-of-work.
Repeats
expandRoundsiterations, each producing 256 bytes of HKDF output keyed on the material and salted withSHA256(material || msgpack(n)). With the default 3000 rounds the workblock is 768 KiB — deliberately cache-unfriendly to limit GPU/ASIC speedup.