Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 22, 2024
1 parent b80246f commit 55b5dfd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ class XMTPModule : Module() {

AsyncFunction("signWithInstallationKey") Coroutine { inboxId: String, message: String ->
withContext(Dispatchers.IO) {
logV("signWithInstallationKey")
val client = clients[inboxId] ?: throw XMTPException("No client")

val signature = client.signWithInstallationKey(message)
Expand All @@ -423,6 +424,7 @@ class XMTPModule : Module() {

AsyncFunction("verifySignature") Coroutine { inboxId: String, message: String, signature: List<Int> ->
withContext(Dispatchers.IO) {
logV("verifySignature")
val client = clients[inboxId] ?: throw XMTPException("No client")
val signatureBytes =
signature.foldIndexed(ByteArray(signature.size)) { i, a, v ->
Expand Down

0 comments on commit 55b5dfd

Please sign in to comment.