File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
web3swift/HookedFunctions Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ public struct Utilities {
206
206
///
207
207
/// Input parameters should be Data objects.
208
208
public static func personalECRecover( _ personalMessage: Data , signature: Data ) -> EthereumAddress ? {
209
- if signature. count != 65 { return nil }
209
+ if signature. count != 65 { return nil }
210
210
let rData = signature [ 0 ..< 32 ] . bytes
211
211
let sData = signature [ 32 ..< 64 ] . bytes
212
212
var vData = signature [ 64 ]
@@ -229,7 +229,7 @@ public struct Utilities {
229
229
///
230
230
/// Input parameters should be Data objects.
231
231
public static func hashECRecover( hash: Data , signature: Data ) -> EthereumAddress ? {
232
- if signature. count != 65 { return nil }
232
+ if signature. count != 65 { return nil }
233
233
let rData = signature [ 0 ..< 32 ] . bytes
234
234
let sData = signature [ 32 ..< 64 ] . bytes
235
235
var vData = signature [ 64 ]
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ extension Web3.BrowserFunctions {
52
52
}
53
53
54
54
public func personalECRecover( _ personalMessage: Data , signature: Data ) -> String ? {
55
- if signature. count != 65 { return nil }
55
+ if signature. count != 65 { return nil }
56
56
let rData = signature [ 0 ..< 32 ] . bytes
57
57
let sData = signature [ 32 ..< 64 ] . bytes
58
58
var vData = signature [ 64 ]
You can’t perform that action at this time.
0 commit comments