diff --git a/build.gradle.kts b/build.gradle.kts index 3abfbf7..c4e3b4e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -112,7 +112,7 @@ dependencies { implementation("org.jetbrains.exposed:exposed-dao:0.44.1") implementation("org.jetbrains.exposed:exposed-java-time:0.44.1") implementation("org.jetbrains.exposed:exposed-json:0.44.1") - implementation("org.xerial:sqlite-jdbc:3.42.0.0") + implementation("org.xerial:sqlite-jdbc:3.44.1.0") implementation("org.postgresql:postgresql:42.6.0") // migration implementation("org.flywaydb:flyway-core:9.22.2") diff --git a/src/main/kotlin/id/walt/db/Db.kt b/src/main/kotlin/id/walt/db/Db.kt index 9a6e576..7aa8589 100644 --- a/src/main/kotlin/id/walt/db/Db.kt +++ b/src/main/kotlin/id/walt/db/Db.kt @@ -61,7 +61,7 @@ object Db { Accounts, Web3Wallets ) - /*SchemaUtils.create( + SchemaUtils.create( Web3Wallets, Accounts, //AccountWeb3WalletMappings, @@ -72,9 +72,9 @@ object Db { WalletDids, WalletOperationHistories, Issuers - )*/ + ) - SchemaUtils.create(Web3Wallets) + /*SchemaUtils.create(Web3Wallets) SchemaUtils.create(Accounts) //AccountWeb3WalletMappings, SchemaUtils.create(Wallets) @@ -83,8 +83,7 @@ object Db { SchemaUtils.create(WalletKeys) SchemaUtils.create(WalletDids) SchemaUtils.create(WalletOperationHistories) - SchemaUtils.create(Issuers) - + SchemaUtils.create(Issuers)*/ runBlocking { AccountsService.register(EmailAccountRequest("Max Mustermann", "string@string.string", "string")) diff --git a/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt b/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt index 5c5760a..56521f9 100644 --- a/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt +++ b/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt @@ -10,11 +10,12 @@ import id.walt.db.models.WalletKeys import id.walt.db.models.WalletOperationHistories import id.walt.db.models.WalletOperationHistory import id.walt.did.dids.DidService +import id.walt.did.dids.registrar.LocalRegistrar import id.walt.did.dids.registrar.dids.DidCheqdCreateOptions import id.walt.did.dids.registrar.dids.DidJwkCreateOptions import id.walt.did.dids.registrar.dids.DidKeyCreateOptions import id.walt.did.dids.registrar.dids.DidWebCreateOptions -import id.walt.did.helpers.WaltidServices +import id.walt.did.dids.resolver.LocalResolver import id.walt.did.utils.EnumUtils.enumValueIgnoreCase import id.walt.oid4vc.data.GrantType import id.walt.oid4vc.data.OpenIDProviderMetadata @@ -63,7 +64,13 @@ class SSIKit2WalletService(accountId: UUID, walletId: UUID) : WalletService(acco companion object { init { runBlocking { - WaltidServices.init() + //WaltidServices.init() + DidService.apply { + registerResolver(LocalResolver()) + updateResolversForMethods() + registerRegistrar(LocalRegistrar()) + updateRegistrarsForMethods() + } } } } diff --git a/web/src/app.vue b/web/src/app.vue index 51c9291..3881f38 100644 --- a/web/src/app.vue +++ b/web/src/app.vue @@ -1,15 +1,7 @@ - - + +