From 965bf0557a64aaf619088637fe457e1d55649c82 Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Tue, 14 May 2024 10:24:04 +0200 Subject: [PATCH] Update KeyUtils.swift --- Sources/TorusUtils/Helpers/KeyUtils.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TorusUtils/Helpers/KeyUtils.swift b/Sources/TorusUtils/Helpers/KeyUtils.swift index 5e71bed2..53362c14 100644 --- a/Sources/TorusUtils/Helpers/KeyUtils.swift +++ b/Sources/TorusUtils/Helpers/KeyUtils.swift @@ -63,7 +63,7 @@ public class KeyUtils { let X = pubKeyX.addLeading0sForLength64() let Y = pubKeyY.addLeading0sForLength64() - return prefixed ? (X + Y).add04Prefix() : (X + Y) + return prefixed ? "04"+(X + Y) : (X + Y) } public static func combinePublicKeys(keys: [String], compressed: Bool = false) throws -> String {