From bb1af197c5b7615a098a705f504a318a0075ba53 Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Mon, 22 Jan 2024 08:01:06 +0200 Subject: [PATCH] feat: update dependency --- Package.resolved | 8 ++++---- Package.swift | 2 +- Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Package.resolved b/Package.resolved index c4286cb..37e3def 100644 --- a/Package.resolved +++ b/Package.resolved @@ -23,8 +23,8 @@ "package": "curvelib.swift", "repositoryURL": "https://github.com/tkey/curvelib.swift", "state": { - "branch": "refactor", - "revision": "3477abff071170d005f05397c6049478fa6ecaf3", + "branch": "extension", + "revision": "d5acae05bfd832393524ec8e0bf8820a745e5331", "version": null } }, @@ -131,8 +131,8 @@ "package": "tss-client-swift", "repositoryURL": "https://github.com/torusresearch/tss-client-swift.git", "state": { - "branch": "inline_replace_secp256k1", - "revision": "196e39fb6853ea88849b25130ef0de4247bb89a1", + "branch": "extenstion", + "revision": "2f0a2357dfa882d8a0e03580ebe22534f5d2c527", "version": null } }, diff --git a/Package.swift b/Package.swift index 5bd69b0..271898a 100644 --- a/Package.swift +++ b/Package.swift @@ -14,7 +14,7 @@ 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", .branch("inline_replace_secp256k1")), + .package(url: "https://github.com/torusresearch/tss-client-swift.git", .branch("extenstion")), ], targets: [ .target( diff --git a/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift b/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift index d791ba9..8e5f128 100644 --- a/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift +++ b/Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift @@ -1,6 +1,6 @@ import BigInt import Foundation -import secp256k1 +import curvelib_swift import tss_client_swift import web3 @@ -223,7 +223,7 @@ public final class EthereumTssAccount: EthereumAccountProtocol { } // generate a random nonce for sessionID - let randomKey = try CurveSecp256k1.generatePrivateKey() + let randomKey = try SecretKey().serialize() guard let randomKeyBigUint = BigUInt(hex: randomKey) else { throw CustomSigningError.generalError(error: "Could not generate random key for sessionID nonce") }