Skip to content

Commit

Permalink
Add todos for other branch
Browse files Browse the repository at this point in the history
  • Loading branch information
n0900 committed Oct 7, 2024
1 parent 9b4d4a1 commit dac98f6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -44,14 +45,17 @@ class RqesWalletService(
responseUri = this.redirectUrl, //TODO double check
)


//TODO implement [CredentialInfo] dataclass + hand over here
suspend fun createSignHashRequestParameters(
rqesRequest: SignatureRequestParameters,
credentialId: String,
sad: String,
): CSCSignatureRequestParameters = SignHashParameters(
credentialId = credentialId,
sad = sad,
hashes = rqesRequest.documentDigests.map { it.hash }
hashes = rqesRequest.documentDigests.map { it.hash },
signAlgoOid = X509SignatureAlgorithm.ES256.oid
)

}
Expand Down

0 comments on commit dac98f6

Please sign in to comment.