getMatchingSystemSpec

abstract fun getMatchingSystemSpec(zkSystemSpecs: List<ZkSystemSpec>, mdocRequest: MdocRequest): ZkSystemSpec?

Searches through the provided zkSystemSpecs and returns the first one that is compatible with the given document.

This is used during proof generation to select the correct spec for a document instance.

Return

a compatible ZkSystemSpec, or null if none match

Parameters

zkSystemSpecs

the list of specs available from the device request

encodedDocument

bytes of the document to generate the proof for