We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4adb1f1 commit 8949242Copy full SHA for 8949242
Sources/tss-client-swift/Helpers.swift
@@ -128,9 +128,9 @@ public class TSSHelpers {
128
return Data(pubKey.bytes).hexString
129
}
130
131
- if pubKey.bytes.count == 65 && !return64Bytes {
+ if pubKey.bytes.count == 64 && return64Bytes {
132
133
- } else if return64Bytes { // first byte should be 04 prefix
+ } else if !return64Bytes { // first byte should be 04 prefix
134
let prefix: UInt8 = 4
135
var pk = Data(pubKey)
136
pk.insert(prefix, at: 0)
0 commit comments