isStructurallyEquivalent

Compares two DeviceRequest instances and checks if they are similar in structure, including signing structure (protected headers, unprotected headers, and certificate chain except for single-use leaf certificate rotation under the same CA), ignoring session-transcript-dependent signatures.

This is used to check if two requests from different sessions (either 18013-5 proximity or 18013-7 Annex A or C) are the same.

Return

true if the requests are structurally equivalent, false otherwise.

Parameters

otherDeviceRequest

the other DeviceRequest to compare against.