Skip to content

Commit

Permalink
bump the pod and switch to new user preference encryption (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer authored Dec 6, 2023
1 parent a1d9305 commit 0a98ae0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/XMTP/Contacts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion Sources/XMTP/Messages/Topic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
}
}

Expand Down
4 changes: 2 additions & 2 deletions XMTP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 0a98ae0

Please sign in to comment.