pub fn generate_stamp<E>( advertisement_hash: &AdvertisementHash, cost: StampCost, fill_entropy: impl FnMut(&mut [u8; 32]) -> Result<(), E>, cancelled: impl FnMut() -> bool, ) -> StampGeneration<E>