diff --git a/Sources/XMTP/Contacts.swift b/Sources/XMTP/Contacts.swift index fc2860a2..d83d6887 100644 --- a/Sources/XMTP/Contacts.swift +++ b/Sources/XMTP/Contacts.swift @@ -68,7 +68,7 @@ class ConsentList { for envelope in envelopes.envelopes { - let payload = try XMTPRust.ecies_decrypt_k256_sha3_256( + let payload = try XMTPRust.user_preferences_decrypt( RustVec(publicKey), RustVec(privateKey), RustVec(envelope.message) @@ -104,7 +104,7 @@ class ConsentList { payload.messageType = nil } - let message = try XMTPRust.ecies_encrypt_k256_sha3_256( + let message = try XMTPRust.user_preferences_encrypt( RustVec(publicKey), RustVec(privateKey), RustVec(payload.serializedData()) diff --git a/Sources/XMTP/Messages/Topic.swift b/Sources/XMTP/Messages/Topic.swift index 724b804c..61b8135e 100644 --- a/Sources/XMTP/Messages/Topic.swift +++ b/Sources/XMTP/Messages/Topic.swift @@ -32,7 +32,7 @@ public enum Topic { case let .directMessageV2(randomString): return wrap("m-\(randomString)") case let .preferenceList(identifier): - return wrap("pppp-\(identifier)") + return wrap("userpreferences-\(identifier)") } } diff --git a/XMTP.podspec b/XMTP.podspec index 2bd70cb5..cae0ffdf 100644 --- a/XMTP.podspec +++ b/XMTP.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |spec| # spec.name = "XMTP" - spec.version = "0.6.14-alpha0" + spec.version = "0.7.0-alpha0" spec.summary = "XMTP SDK Cocoapod" # This description is used to generate tags and improve search results. @@ -44,5 +44,5 @@ Pod::Spec.new do |spec| spec.dependency "web3.swift" spec.dependency "GzipSwift" spec.dependency "Connect-Swift", "= 0.3.0" - spec.dependency 'XMTPRust', '= 0.3.6-beta0' + spec.dependency 'XMTPRust', '= 0.3.7-beta0' end