The peer's raw public key (RFC 7250) as a DER SubjectPublicKeyInfo. RFC 7252 §9.1.3.2.1 derives the CoAP identifier from it with RFC 6920 (sha-256-120 at least); that lives in kcoap-dtls.
SubjectPublicKeyInfo
sha-256-120