Original DAG-CBOR spec:
Encode and decode must operate on a single top-level CBOR object. Back-to-back concatenated objects are not allowed or supported, as suggested by section 5.1 of RFC 8949 for streaming applications. All bytes of an encoded DAG-CBOR object must decode to a single object. Extraneous bytes included in an IPLD block, whether valid or invalid CBOR, must not be accepted as valid DAG-CBOR.
I remember seeing an issue about ATProto's usage of DAG-CBOR breaking this rule, and am wondering if there is some "decode-only" style tolerance that could happen here, or if this is an issue i've misunderstood from the jump.
Original DAG-CBOR spec:
I remember seeing an issue about ATProto's usage of DAG-CBOR breaking this rule, and am wondering if there is some "decode-only" style tolerance that could happen here, or if this is an issue i've misunderstood from the jump.