diff --git a/CustomAuth.podspec b/CustomAuth.podspec index 5c12d39..59cab53 100644 --- a/CustomAuth.podspec +++ b/CustomAuth.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "CustomAuth" - spec.version = "11.0.1" + spec.version = "11.0.2" spec.platform = :ios, "14.0" spec.summary = "Swift SDK that allows applications to directly interact with the Torus Network, similar to how Torus Wallet does." spec.homepage = "https://github.com/torusresearch/customauth-swift-sdk" diff --git a/Sources/CustomAuth/Common/TorusGenericContainer.swift b/Sources/CustomAuth/Common/TorusGenericContainer.swift index ca1abf0..fddec8f 100644 --- a/Sources/CustomAuth/Common/TorusGenericContainer.swift +++ b/Sources/CustomAuth/Common/TorusGenericContainer.swift @@ -3,7 +3,7 @@ import Foundation public class TorusGenericContainer: Codable { public let params: [String: String] - init(params: [String: String]) { + public init(params: [String: String]) { self.params = params } } diff --git a/Sources/CustomAuth/CustomAuth.swift b/Sources/CustomAuth/CustomAuth.swift index 2ea27aa..a8243e8 100644 --- a/Sources/CustomAuth/CustomAuth.swift +++ b/Sources/CustomAuth/CustomAuth.swift @@ -191,9 +191,9 @@ public class CustomAuth { aggregateIdTokenSeeds.sort() let joined = aggregateIdTokenSeeds.joined(separator: "\u{29}").data(using: .utf8)! - let aggregateIdToken = try keccak256(data: joined) + let aggregateIdToken = try keccak256(data: joined).hexString let params: VerifierParams = VerifierParams(verifier_id: verifierParams.verifier_id, extended_verifier_id: verifierParams.extended_verifier_id, sub_verifier_ids: subVerifierIds, verify_params: verifyParams) - return try await torus.retrieveShares(endpoints: nodeDetails.getTorusNodeEndpoints(), verifier: verifier, verifierParams: params, idToken: String(data: aggregateIdToken, encoding: .utf8)!) + return try await torus.retrieveShares(endpoints: nodeDetails.getTorusNodeEndpoints(), verifier: verifier, verifierParams: params, idToken: aggregateIdToken) } }