Encode a MassaContentHash into its ENSIP-7 compatible binary representation.
Binary layout:
codec(massa) emptycodec(network) emptycodec(feature) emptycodec(target) lp-utf8(target-value)[codec(path) lp-utf8(file-path)] // deweb only Copy
codec(massa) emptycodec(network) emptycodec(feature) emptycodec(target) lp-utf8(target-value)[codec(path) lp-utf8(file-path)] // deweb only
The contenthash components to encode
The binary contenthash
If the target or path values are invalid
Encode a MassaContentHash into its ENSIP-7 compatible binary representation.
Binary layout: