getMatchingSystemSpec

abstract fun getMatchingSystemSpec(zkSystemSpecs: List<ZkSystemSpec>, requestedClaims: List<RequestedClaim>): 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

requestedClaims

the requested claims.