Skip to content

Commit

Permalink
Update KeyUtils.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed May 14, 2024
1 parent c32e97b commit 965bf05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TorusUtils/Helpers/KeyUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 965bf05

Please sign in to comment.