From 7e1c6bc70eff1fd8b711c9b14853167560ff210c Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Tue, 30 Jul 2024 08:56:21 +0200 Subject: [PATCH] fix: remove double hex of token signature --- Sources/TorusUtils/Helpers/NodeUtils.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/TorusUtils/Helpers/NodeUtils.swift b/Sources/TorusUtils/Helpers/NodeUtils.swift index d823d0a4..2c9ab887 100644 --- a/Sources/TorusUtils/Helpers/NodeUtils.swift +++ b/Sources/TorusUtils/Helpers/NodeUtils.swift @@ -463,9 +463,9 @@ internal class NodeUtils { sessionTokenDatas.append(nil) } else { if Data(hexString: item!) != nil { - sessionTokenDatas.append(SessionToken(token: Data(hexString: item!)!.base64EncodedString(), signature: sessionTokenSigs[i]!.data(using: .utf8)!.hexString, node_pubx: shareResponses[i].nodePubX, node_puby: shareResponses[i].nodePubY)) + sessionTokenDatas.append(SessionToken(token: Data(hexString: item!)!.base64EncodedString(), signature: sessionTokenSigs[i]!, node_pubx: shareResponses[i].nodePubX, node_puby: shareResponses[i].nodePubY)) } else { - sessionTokenDatas.append(SessionToken(token: item!, signature: sessionTokenSigs[i]!.data(using: .utf8)!.hexString, node_pubx: shareResponses[i].nodePubX, node_puby: shareResponses[i].nodePubY)) + sessionTokenDatas.append(SessionToken(token: item!, signature: sessionTokenSigs[i]!, node_pubx: shareResponses[i].nodePubX, node_puby: shareResponses[i].nodePubY)) } } }