Skip to content

Commit 8949242

Browse files
committed
fix: comparison
1 parent 4adb1f1 commit 8949242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/tss-client-swift/Helpers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ public class TSSHelpers {
128128
return Data(pubKey.bytes).hexString
129129
}
130130

131-
if pubKey.bytes.count == 65 && !return64Bytes {
131+
if pubKey.bytes.count == 64 && return64Bytes {
132132
return Data(pubKey.bytes).hexString
133-
} else if return64Bytes { // first byte should be 04 prefix
133+
} else if !return64Bytes { // first byte should be 04 prefix
134134
let prefix: UInt8 = 4
135135
var pk = Data(pubKey)
136136
pk.insert(prefix, at: 0)

0 commit comments

Comments
 (0)