-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy over ClientTrustUseCase and integrate #2
base: main
Are you sure you want to change the base?
Conversation
val verified = try { | ||
verifier.verify(callingPackage, URI.create(clientIdentityUri.toString())) | ||
} catch (e: AndroidAppPackageVerifier.CouldNotVerifyPackageException) { | ||
Log.w(TAG, "Package verification failed for callingPackage=$callingPackage, clientIdentityUri=$clientIdentityUri") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The verification is failing here with the Log printing:
W/ClientTrustUseCase: Package verification failed for callingPackage=com.solana.mobilewalletadapter.fakedapp, clientIdentityUri=https://solana.com
W/ClientTrustUseCase: com.solana.digitalassetlinks.AndroidAppPackageVerifier$CouldNotVerifyPackageException: Could not verify package com.solana.mobilewalletadapter.fakedapp
W/ClientTrustUseCase: App-scoped authorization failed for 'com.solana.mobilewalletadapter.fakedapp'
|
||
backgroundScope.launch { | ||
val verificationState = withTimeoutOrNull(SOURCE_VERIFICATION_TIMEOUT_MS) { | ||
verify.await() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where the verification call is triggered.
@@ -66,6 +74,13 @@ class SolanaMobileWalletAdapterModule(val reactContext: ReactApplicationContext) | |||
callback.invoke("ERROR", "Current implementation of fakewallet does not support remote clients") | |||
return | |||
} | |||
|
|||
clientTrustUseCase = ClientTrustUseCase( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where I instantiate the ClientTrustUseCase, aka when the scenario is created.
WIP