From cde4692cfaafc846b80cb81363ea08ba678e6ae3 Mon Sep 17 00:00:00 2001 From: mikeplotean <101570226+mikeplotean@users.noreply.github.com> Date: Tue, 20 Jun 2023 17:31:53 +0300 Subject: [PATCH] chore: updated did-key-creation-request parameter name (#163) --- build.gradle.kts | 2 +- .../id/walt/webwallet/backend/wallet/DidCreationRequest.kt | 2 +- .../id/walt/webwallet/backend/wallet/WalletController.kt | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6072de13..ccf7ebc4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ repositories { dependencies { // SSIKIT - implementation("id.walt:waltid-ssikit:1.2306191203.0") + implementation("id.walt:waltid-ssikit:1.2306201406.0") implementation("id.walt:waltid-sd-jwt-jvm:1.2306160840.0") implementation("io.javalin:javalin-bundle:4.6.8") diff --git a/src/main/kotlin/id/walt/webwallet/backend/wallet/DidCreationRequest.kt b/src/main/kotlin/id/walt/webwallet/backend/wallet/DidCreationRequest.kt index 277be4ce..f76fbd0f 100644 --- a/src/main/kotlin/id/walt/webwallet/backend/wallet/DidCreationRequest.kt +++ b/src/main/kotlin/id/walt/webwallet/backend/wallet/DidCreationRequest.kt @@ -11,5 +11,5 @@ data class DidCreationRequest( @Json(serializeNull = false) val didWebPath: String? = null, @Json(serializeNull = false) val didEbsiVersion: Int = 1, @Json(serializeNull = false) val network: String? = "testnet", - @Json(serializeNull = false) val isJwk: Boolean? = false, + @Json(serializeNull = false) val useJwkJcsPub: Boolean? = false, ) diff --git a/src/main/kotlin/id/walt/webwallet/backend/wallet/WalletController.kt b/src/main/kotlin/id/walt/webwallet/backend/wallet/WalletController.kt index 1cb1825e..718db603 100644 --- a/src/main/kotlin/id/walt/webwallet/backend/wallet/WalletController.kt +++ b/src/main/kotlin/id/walt/webwallet/backend/wallet/WalletController.kt @@ -427,9 +427,8 @@ object WalletController { val didStr = DidService.create( req.method, didKeyId, - DidKeyCreateOptions(isJwk = req.isJwk ?: false) + DidKeyCreateOptions(useJwkJcsPub = req.useJwkJcsPub ?: false) ) - ctx.result(didStr) }