From dac98f60359610b5038e0be144604fd056254d5c Mon Sep 17 00:00:00 2001 From: Simon Mueller Date: Mon, 7 Oct 2024 18:19:54 +0200 Subject: [PATCH] Add todos for other branch --- .../at/asitplus/wallet/lib/oidvci/RqesWalletService.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vck-openid/src/commonMain/kotlin/at/asitplus/wallet/lib/oidvci/RqesWalletService.kt b/vck-openid/src/commonMain/kotlin/at/asitplus/wallet/lib/oidvci/RqesWalletService.kt index 501a1e89..7ace2cc6 100644 --- a/vck-openid/src/commonMain/kotlin/at/asitplus/wallet/lib/oidvci/RqesWalletService.kt +++ b/vck-openid/src/commonMain/kotlin/at/asitplus/wallet/lib/oidvci/RqesWalletService.kt @@ -30,6 +30,7 @@ class RqesWalletService( /** * TODO: could also use [Document] instead of [CscDocumentDigest], also [credential_id] instead of [SAD] + * TODO implement [CredentialInfo] dataclass + hand over here */ suspend fun createSignDocRequestParameters(rqesRequest: SignatureRequestParameters, sad: String): CSCSignatureRequestParameters = SignDocParameters( @@ -44,6 +45,8 @@ class RqesWalletService( responseUri = this.redirectUrl, //TODO double check ) + + //TODO implement [CredentialInfo] dataclass + hand over here suspend fun createSignHashRequestParameters( rqesRequest: SignatureRequestParameters, credentialId: String, @@ -51,7 +54,8 @@ class RqesWalletService( ): CSCSignatureRequestParameters = SignHashParameters( credentialId = credentialId, sad = sad, - hashes = rqesRequest.documentDigests.map { it.hash } + hashes = rqesRequest.documentDigests.map { it.hash }, + signAlgoOid = X509SignatureAlgorithm.ES256.oid ) }