jellyfish
jellyfish copied to clipboard
Ergonomic conversion of HasherNode to byte slice
In order to get a &[u8] from a HasherNode downstream users must do .as_ref().as_ref(). Example:
https://github.com/EspressoSystems/HotShot/pull/2397#discussion_r1451628631
The acceptable number of .as_ref() to force upon downstream users is at most 1.
Might be missing something but it is not clear to me why this cannot be handled in a simple manner on the Hotshot side like this: https://github.com/EspressoSystems/HotShot/pull/2892
In that case, it seems there is no problem. I'm a bit surprised it works now with only one .as_ref(). I wonder whether somebody quietly slipped in a fix without noticing.