generate
open suspend override fun generate(request: PresentationRequestParameters, credential: SubjectCredentialStore.StoreEntry.Iso, requestedClaims: Collection<NormalizedJsonPath>, requestedZkSystemSpecs: List<ZkSystemSpec>, keyMaterial: KeyMaterial): KmmResult<IsoMdocZkProof>(source)
Generates a zero-knowledge proof for a given credential and requested claim paths.
Return
A KmmResult wrapping the generated IsoMdocZkProof.
Parameters
request
Presentation request parameters containing session context.
credential
The ISO mdoc credential store entry containing attributes to disclose.
requestedClaims
The set of normalized JSON paths representing requested claims.
requestedZkSystemSpecs
Acceptable ZK system specifications requested by the verifier.
keyMaterial
The key material used for signing device authentication in the mDoc context.
Throws
if initialize has not been called.