Extract the content hash digest from a CIDv1 string and return it as a 0x-prefixed hex string — the preimage key format used by the host API.
0x
Accepts CIDv1 with any hash algorithm supported by the Bulletin Chain (blake2b-256, sha2-256, keccak-256).
CIDv1 base32 string (as produced by computeCid or hashToCid).
0x-prefixed hex string of the 32-byte hash digest.
If the CID is not CIDv1 or uses an unsupported hash algorithm.
Extract the content hash digest from a CIDv1 string and return it as a
0x-prefixed hex string — the preimage key format used by the host API.Accepts CIDv1 with any hash algorithm supported by the Bulletin Chain (blake2b-256, sha2-256, keccak-256).