From 7a5caa3df191d7970b4ff80802ad4233b172dd0e Mon Sep 17 00:00:00 2001 From: ieow Date: Wed, 3 Apr 2024 12:19:30 +0800 Subject: [PATCH] fix: fix conversion --- Sources/SingleFactorAuth/SingleFactorAuth.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SingleFactorAuth/SingleFactorAuth.swift b/Sources/SingleFactorAuth/SingleFactorAuth.swift index b11b5a9..0d784c6 100644 --- a/Sources/SingleFactorAuth/SingleFactorAuth.swift +++ b/Sources/SingleFactorAuth/SingleFactorAuth.swift @@ -64,8 +64,8 @@ public class SingleFactorAuth { ] as [String: Codable] let verifierParams = VerifierParams(verifier_id: loginParams.verifierId) - - let aggregateIdToken = String(String(bytes: aggregateIdTokenSeeds.joined(separator: "\u{001d}").bytes.sha3(.keccak256)).dropFirst(2)) // drop 0x + + let aggregateIdToken = aggregateIdTokenSeeds.joined(separator: "\u{001d}").bytes.sha3(.keccak256).toHexString() // drop 0x retrieveSharesResponse = try await torusUtils.retrieveShares( endpoints: details.getTorusNodeEndpoints(),