Skip to content

Commit

Permalink
fix: key generation example in wallet-api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Nov 20, 2024
1 parent 3639d35 commit 4a693ec
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import kotlinx.coroutines.runBlocking
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.JsonPrimitive
import kotlinx.serialization.json.buildJsonObject
import kotlinx.serialization.json.putJsonObject
import org.jetbrains.exposed.sql.transactions.transaction

fun Application.keys() = walletRoute {
Expand Down Expand Up @@ -105,9 +106,11 @@ fun Application.keys() = walletRoute {
backend = "aws",
keyType = KeyType.secp256r1,
config = buildJsonObject {
put("accessKeyId", JsonPrimitive("accessKey"))
put("secretAccessKey", JsonPrimitive("secretKey"))
put("region", JsonPrimitive("eu-central-1"))
putJsonObject("auth") {
put("accessKeyId", JsonPrimitive("accessKey"))
put("secretAccessKey", JsonPrimitive("secretKey"))
put("region", JsonPrimitive("eu-central-1"))
}
}
)
}
Expand Down

0 comments on commit 4a693ec

Please sign in to comment.