File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Sources/MPCEthereumProvider
Tests/Web3SwiftMpcProviderTests Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import curveSecp256k1
15
15
16
16
17
17
public protocol EvmSigner {
18
- func sign( message: Data ) -> Data
18
+ func sign( message: Data ) throws -> Data
19
19
var publicKey : Data { get }
20
20
}
21
21
Original file line number Diff line number Diff line change @@ -46,11 +46,10 @@ import MPCEthereumProvider
46
46
47
47
48
48
extension MpcCoreKit : EvmSigner {
49
- public func sign( message: Data ) -> Data {
50
- let data = try ? self . tssSign ( message: message)
51
- return data ?? Data ( [ ] )
49
+ public func sign( message: Data ) throws -> Data {
50
+ let data = try self . tssSign ( message: message)
51
+ return data
52
52
}
53
-
54
53
55
54
public var publicKey : Data {
56
55
return self . getTssPubKey ( ) . suffix ( 64 )
You can’t perform that action at this time.
0 commit comments