Assert that bytes is the canonical DAG-CBOR encoding of envelope.
cid hashes the re-encoded envelope, and the DAG-CBOR decoder accepts
some non-canonical input (e.g. unsorted map keys or short floats). Without
this check, different byte strings would share a CID.
Assert that
bytesis the canonical DAG-CBOR encoding ofenvelope.cid hashes the re-encoded envelope, and the DAG-CBOR decoder accepts some non-canonical input (e.g. unsorted map keys or short floats). Without this check, different byte strings would share a CID.