Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mpc swift provider #15

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add if canimport
add if canImport(curveSecp256k1)
  • Loading branch information
ieow committed May 20, 2024
commit 31c3d911f838443f3bb08c5eb908bf19ddce0e48
7 changes: 5 additions & 2 deletions Sources/MPCEthereumProvider/MPCEthereumProvider.swift
Original file line number Diff line number Diff line change
@@ -7,10 +7,13 @@

import BigInt
import Foundation
#ifcanimport
import curveSecp256k1
import web3

#if canImport(curveSecp256k1)
import curveSecp256k1
#endif


public protocol EvmSigner {
func sign( message: Data ) -> Data
var publicKey : Data { get }
4 changes: 3 additions & 1 deletion Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import BigInt
import Foundation
import curveSecp256k1
import tssClientSwift
import web3
#if canImport(curveSecp256k1)
import curveSecp256k1
#endif

enum CustomSigningError: Error {
case generalError(error: String = "")