diff --git a/License.md b/License.md new file mode 100644 index 0000000..5eec43e --- /dev/null +++ b/License.md @@ -0,0 +1,11 @@ +Copyright (c) 2020 Torus Labs Private Limited (https://tor.us) + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Package.resolved b/Package.resolved index 3d78550..2b4c38f 100644 --- a/Package.resolved +++ b/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/tkey/curvelib.swift", "state": { "branch": null, - "revision": "2df9f638fd121b445ce3b410cd79ac4d0cfa94ed", - "version": "1.0.0" + "revision": "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea", + "version": "1.0.1" } }, { @@ -123,8 +123,8 @@ "repositoryURL": "https://github.com/torusresearch/tss-client-swift.git", "state": { "branch": null, - "revision": "30e7ec88b5b854581f2f1dc074cea00462f4142e", - "version": "3.0.0" + "revision": "40246d5e3ff1d2c97d41846576f7a81d58858981", + "version": "4.0.0" } }, { diff --git a/Package.swift b/Package.swift index 8dd7807..dcda146 100644 --- a/Package.swift +++ b/Package.swift @@ -14,12 +14,13 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/argentlabs/web3.swift", from:"1.6.0"), - .package(url: "https://github.com/torusresearch/tss-client-swift.git", from: "3.0.0"), + .package(url: "https://github.com/torusresearch/tss-client-swift.git", from: "4.0.0"), + .package(url: "https://github.com/tkey/curvelib.swift", from: "1.0.1"), ], targets: [ .target( name: "Web3SwiftMpcProvider", - dependencies: ["web3.swift", "tss-client-swift"], + dependencies: ["web3.swift", .product(name: "tssClientSwift", package: "tss-client-swift"), .product(name: "curveSecp256k1", package: "curvelib.swift")], path: "Sources/Web3SwiftMpcProvider" ), .testTarget( diff --git a/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift b/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift index 6d07a39..70c5729 100644 --- a/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift +++ b/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift @@ -1,7 +1,7 @@ import BigInt import Foundation import curveSecp256k1 -import tss_client_swift +import tssClientSwift import web3 enum CustomSigningError: Error { diff --git a/web3-swift-mpc-provider.podspec b/web3-swift-mpc-provider.podspec new file mode 100644 index 0000000..d4f88b5 --- /dev/null +++ b/web3-swift-mpc-provider.podspec @@ -0,0 +1,16 @@ +Pod::Spec.new do |spec| + spec.name = "web3-mpc-provider-swift" + spec.version = "4.0.0" + spec.ios.deployment_target = '13.0' + spec.summary = "MPC TSS Client" + spec.homepage = "https://web3auth.io/" + spec.license = { :type => 'BSD', :file => 'License.md' } + spec.swift_version = "5.0" + spec.author = { "Torus Labs" => "hello@tor.us" } + spec.source = { :git => "https://github.com/tkey/web3-swift-mpc-provider.git", :tag => spec.version } + spec.source_files = "Sources/**/*.{swift,h,c}" + spec.dependency 'web3.swift', '~> 1.6.0' + spec.dependency 'tssClientSwift', '4.0.0' + spec.dependency 'curvelib.swift', '~> 1.0.1' + spec.module_name = "Web3SwiftMpcProvider" +end