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()