parseRequest
Splits the payload of a request to the EDHOC resource into its prefix and the EDHOC message.
The payload comes from the peer, so a malformed one is an EDHOC failure, not a caller mistake: the exception's EdhocException.errorMessage is the EDHOC error (code 1) to answer it with, in a 4.00 response (RFC 9528 Appendix A.2.3, errorResponse). The exception message says what was wrong for this side's logs, naming the kind of a CBOR item but never quoting the peer's bytes or text.
Throws
when the payload does not start with true or a connection identifier in the representation of RFC 9528 §3.3.2, or nothing follows it.