Skip to content

Commit

Permalink
refactor: update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Jan 23, 2024
1 parent f4367dd commit 15991ab
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"package": "curvelib.swift",
"repositoryURL": "https://github.com/tkey/curvelib.swift",
"state": {
"branch": "extension",
"revision": "d5acae05bfd832393524ec8e0bf8820a745e5331",
"version": null
"branch": null,
"revision": "85d17cc4fcc9ccf5f444a51d163b2f1671862621",
"version": "0.1.0"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
targets: ["TorusUtils"])
],
dependencies: [
.package(name: "curvelib.swift", url: "https://github.com/tkey/curvelib.swift", .branch("extension")),
.package(name: "curvelib.swift", url: "https://github.com/tkey/curvelib.swift", from: "0.1.0"),
.package(name:"FetchNodeDetails", url: "https://github.com/torusresearch/fetch-node-details-swift", from: "5.1.0"),
.package(name:"CryptoSwift", url: "https://github.com/krzyzanowskim/CryptoSwift",from: "1.5.1"),
.package(name:"jwt-kit", url: "https://github.com/vapor/jwt-kit", from: "4.0.0"),
Expand All @@ -24,7 +24,7 @@ let package = Package(
targets: [
.target(
name: "TorusUtils",
dependencies: ["FetchNodeDetails", "CryptoSwift", "AnyCodable", "curvelib.swift"]),
dependencies: ["FetchNodeDetails", "CryptoSwift", "AnyCodable", .product(name: "curveSecp256k1", package: "curvelib.swift")]),
.testTarget(
name: "TorusUtilsTests",
dependencies: ["TorusUtils", .product(name: "JWTKit", package: "jwt-kit")]
Expand Down
4 changes: 2 additions & 2 deletions Sources/TorusUtils/Extensions/TorusUtils+extension.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import CryptoSwift
import Foundation
#if canImport(curvelib_swift)
import curvelib_swift
#if canImport(curveSecp256k1)
import curveSecp256k1
#endif
import AnyCodable
import BigInt
Expand Down
4 changes: 2 additions & 2 deletions Sources/TorusUtils/Helpers/LangrangeInterpolatePoly.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BigInt
import Foundation
#if canImport(curvelib_swift)
import curvelib_swift
#if canImport(curveSecp256k1)
import curveSecp256k1
#endif

func modInverse(_ a: BigInt, _ m: BigInt) -> BigInt? {
Expand Down
4 changes: 2 additions & 2 deletions Sources/TorusUtils/TorusUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import FetchNodeDetails
import Foundation
import OSLog
import AnyCodable
#if canImport(curvelib_swift)
import curvelib_swift
#if canImport(curveSecp256k1)
import curveSecp256k1
#endif

var utilsLogType = OSLogType.default
Expand Down

0 comments on commit 15991ab

Please sign in to comment.