It might be better to do this on the library side. Currently, it is implemented on the assumption that hash data will be received. https://github.com/Monas-project/crsl-lib/blob/3fdf48abe396dbde5c1898cc87df6f3e3321d8dc/src/dasl/cid.rs#L27