From 981a09fa1c040fb9f93e4d1e7e136f90b2ed1acf Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Wed, 25 Oct 2023 17:03:05 -0700 Subject: [PATCH] it is decrypt not encrypt --- library/src/main/java/org/xmtp/android/library/Contacts.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/org/xmtp/android/library/Contacts.kt b/library/src/main/java/org/xmtp/android/library/Contacts.kt index c70298d25..cfea5fcd4 100644 --- a/library/src/main/java/org/xmtp/android/library/Contacts.kt +++ b/library/src/main/java/org/xmtp/android/library/Contacts.kt @@ -1,5 +1,6 @@ package org.xmtp.android.library +import android.util.Log import kotlinx.coroutines.runBlocking import org.xmtp.android.library.messages.ContactBundle import org.xmtp.android.library.messages.ContactBundleBuilder @@ -91,7 +92,7 @@ class AllowList(val client: Client) { } }.build() - val message = uniffi.xmtp_dh.eciesDecryptK256Sha3256( + val message = uniffi.xmtp_dh.eciesEncryptK256Sha3256( publicKey.toByteArray().toUByteArray().toList(), privateKey.toByteArray().toUByteArray().toList(), payload.toByteArray().toUByteArray().toList()