Skip to content

Commit

Permalink
fix: add prints to debug CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianIOHK committed Nov 3, 2023
1 parent 8945986 commit 42c4995
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Secp256k1KeyPair(override var privateKey: PrivateKey, override var publicK
fun generateKeyPair(seed: Seed, curve: KeyCurve): Secp256k1KeyPair {
val path = "m/${curve.index}'/0'/0'"
val hdKey = HDKey(seed.value, 0, 0)
println("Derive path: $path")
val derivedHdKey = hdKey.derive(path)
return Secp256k1KeyPair(
privateKey = Secp256k1PrivateKey(derivedHdKey.getKMMSecp256k1PrivateKey().raw),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ import io.iohk.atala.prism.walletsdk.prismagent.protocols.outOfBand.PrismOnboard
import io.iohk.atala.prism.walletsdk.prismagent.protocols.proofOfPresentation.Presentation
import io.iohk.atala.prism.walletsdk.prismagent.protocols.proofOfPresentation.RequestPresentation
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.http.Url
import io.ktor.http.ContentType
import io.ktor.http.HttpMethod
import io.ktor.http.Url
import io.ktor.serialization.kotlinx.json.json
import java.net.UnknownHostException
import java.time.Duration
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
Expand All @@ -80,8 +82,6 @@ import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.jsonObject
import java.net.UnknownHostException
import java.time.Duration

/* ktlint-disable import-ordering */

Expand Down Expand Up @@ -553,6 +553,7 @@ class PrismAgent {
return when (pollux.extractCredentialFormatFromMessage(offer.attachments)) {
CredentialType.JWT -> {
val privateKeyKeyPath = pluto.getPrismDIDKeyPathIndex(did).first()
println("Seed: ${seed.value.base64UrlEncoded}")
val keyPair = Secp256k1KeyPair.generateKeyPair(
seed,
KeyCurve(Curve.SECP256K1, privateKeyKeyPath)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 2.4.0
version = 2.4.0.a
org.gradle.jvmargs = -Xmx3072M -Dkotlin.daemon.jvm.options="-Xmx3072M"
kotlin.code.style = official
android.useAndroidX = true
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repositories {
}

dependencies {
testImplementation("io.iohk.atala.prism.walletsdk:atala-prism-sdk:2.4.0")
testImplementation("io.iohk.atala.prism.walletsdk:atala-prism-sdk:2.4.0.a")
testImplementation("io.iohk.atala.prism:prism-kotlin-client:1.9.2")
testImplementation("io.iohk.atala:atala-automation:0.3.0")
}
Expand Down

0 comments on commit 42c4995

Please sign in to comment.