Skip to content

Commit

Permalink
it is decrypt not encrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 26, 2023
1 parent 0d85fe6 commit 981a09f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/src/main/java/org/xmtp/android/library/Contacts.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 981a09f

Please sign in to comment.