Documentation
    Preparing search index...

    Function assertCanonical

    • 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.

      Parameters

      Returns void