Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: torusresearch/torus-utils-swift
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8.0.1
Choose a base ref
...
head repository: torusresearch/torus-utils-swift
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 5, 2024

  1. fix: encryption

    ieow committed Apr 5, 2024
    Copy the full SHA
    390e927 View commit details
  2. Copy the full SHA
    d88c724 View commit details

Commits on Apr 9, 2024

  1. improve readme

    AyushBherwani1998 committed Apr 9, 2024
    Copy the full SHA
    760d277 View commit details
  2. Copy the full SHA
    4576991 View commit details
  3. fix typo

    AyushBherwani1998 committed Apr 9, 2024
    Copy the full SHA
    db3a74f View commit details
  4. Merge pull request #88 from torusresearch/update-readme

    Update README
    shahbaz17 authored Apr 9, 2024
    Copy the full SHA
    9854272 View commit details

Commits on Apr 16, 2024

  1. Copy the full SHA
    08863de View commit details
  2. feat: remove cryptoSwift

    ieow committed Apr 16, 2024
    Copy the full SHA
    f0bc69a View commit details
  3. fix: update package.swift

    ieow committed Apr 16, 2024
    Copy the full SHA
    423a56f View commit details
  4. fix: update packages

    ieow committed Apr 16, 2024
    Copy the full SHA
    9082e32 View commit details
  5. fix: update curvelib

    ieow committed Apr 16, 2024
    Copy the full SHA
    8ea9262 View commit details

Commits on Apr 17, 2024

  1. cleanup

    metalurgical committed Apr 17, 2024
    Copy the full SHA
    e66764b View commit details
  2. cleanup

    metalurgical committed Apr 17, 2024
    Copy the full SHA
    017cb4d View commit details
  3. Merge pull request #86 from torusresearch/fix/encryption

    fix: Remove CryptoSwift
    metalurgical authored Apr 17, 2024
    Copy the full SHA
    cd26539 View commit details

Commits on Apr 18, 2024

  1. Copy the full SHA
    dc7b3b3 View commit details
  2. feat: update cocoapods

    metalurgical committed Apr 18, 2024
    Copy the full SHA
    978dcb0 View commit details
  3. Copy the full SHA
    e87b2bf View commit details
  4. update

    metalurgical committed Apr 18, 2024
    Copy the full SHA
    f07b62a View commit details
  5. Copy the full SHA
    b18ff77 View commit details
  6. update

    metalurgical committed Apr 18, 2024
    Copy the full SHA
    11988e0 View commit details
  7. update

    metalurgical committed Apr 18, 2024
    Copy the full SHA
    b2e598e View commit details

Commits on Apr 19, 2024

  1. cleanup

    metalurgical committed Apr 19, 2024
    Copy the full SHA
    8ad5abe View commit details
  2. update podfile.lock

    metalurgical committed Apr 19, 2024
    Copy the full SHA
    70142c9 View commit details
  3. Merge pull request #91 from torusresearch/cocoapods

    feat: update cocoapods podspec
    chaitanyapotti authored Apr 19, 2024
    Copy the full SHA
    dd51e56 View commit details

Commits on Apr 22, 2024

  1. Copy the full SHA
    30505b8 View commit details
  2. Copy the full SHA
    e2478f3 View commit details
  3. Merge pull request #92 from torusresearch/feat/gating-error

    Feat/gating error
    chaitanyapotti authored Apr 22, 2024
    Copy the full SHA
    74b18a0 View commit details
  4. bump

    chaitanyapotti committed Apr 22, 2024
    Copy the full SHA
    f20a23b View commit details

Commits on Jun 3, 2024

  1. fix: edge case prefix04

    ieow committed Jun 3, 2024
    Copy the full SHA
    44ad391 View commit details
  2. fix: addPrefix

    ieow committed Jun 3, 2024
    Copy the full SHA
    55bcceb View commit details

Commits on Jun 13, 2024

  1. add podspec 8.1.2

    ieow committed Jun 13, 2024
    Copy the full SHA
    b4c43a1 View commit details

Commits on Jun 14, 2024

  1. Merge pull request #98 from torusresearch/fix/edgecase-prefix04

    fix: edge case prefix04
    metalurgical authored Jun 14, 2024
    Copy the full SHA
    608c284 View commit details
  2. fix: remove lookupkey variables and unnecessary getPublicAddress() ca…

    …ll from handleRetrieveShares
    metalurgical committed Jun 14, 2024
    Copy the full SHA
    06ec8f9 View commit details
  3. re-align torus-utils-swift

    Re-align the current implementation of torus-utils-swift to that of the web implementation of torus.js.
    
    This will reduce the overhead of differences a developer would need to remember between the two and provide an overall better experience.
    
    This will also provide better long term maintainability and make feature parity simpler to implement between the two.
    
    The are also numerous bug fixes implemented in this PR as well, one of which allowed the package AnyCodable as a dependency to be removed.
    
     Should be feature-complete up until tag v12.3.5 on torus.js
    metalurgical committed Jun 14, 2024
    Copy the full SHA
    2ce089a View commit details
  4. Copy the full SHA
    976da30 View commit details

Commits on Jul 15, 2024

  1. fix: nonce result bug

    metalurgical committed Jul 15, 2024
    Copy the full SHA
    a136aeb View commit details
  2. fix: most one key test

    metalurgical committed Jul 15, 2024
    Copy the full SHA
    53a2b75 View commit details
  3. fix: last one key test

    metalurgical committed Jul 15, 2024
    Copy the full SHA
    99c90c8 View commit details
  4. Copy the full SHA
    1fcc104 View commit details

Commits on Jul 16, 2024

  1. Copy the full SHA
    6516d25 View commit details
  2. Copy the full SHA
    2df77d4 View commit details
  3. Update Podfile.lock

    metalurgical committed Jul 16, 2024
    Copy the full SHA
    02b86a3 View commit details

Commits on Jul 18, 2024

  1. Copy the full SHA
    3655710 View commit details
  2. review comments

    change legacyMetadataHost to metadataHost for getOrSetSapphireMetadataNonce() function.
    
    add test for hexEncodedToString()
    metalurgical committed Jul 18, 2024
    Copy the full SHA
    feb727b View commit details
  3. Copy the full SHA
    d5aaae2 View commit details

Commits on Jul 19, 2024

  1. Copy the full SHA
    fadc25f View commit details
  2. Copy the full SHA
    9797680 View commit details

Commits on Jul 22, 2024

  1. Copy the full SHA
    22d913f View commit details
  2. review comments

    fix: polyEval calculation
    fix: missing not in comparison of TorusUtils.isLegacyNetworkRouteMap
    fix: check on extendedVerifierId
    fix: throw on invalid pubNonce
    formatting
    metalurgical committed Jul 22, 2024
    Copy the full SHA
    a3e8ae1 View commit details
  3. Copy the full SHA
    d1b9ae0 View commit details
Showing with 4,176 additions and 4,782 deletions.
  1. +2 −2 .github/workflows/main.yml
  2. +0 −1 .gitignore
  3. +3 −0 .periphery.yml
  4. +24 −0 .swiftpm/TorusUtils.xctestplan
  5. +7 −0 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
  6. +84 −0 .swiftpm/xcode/xcshareddata/xcschemes/TorusUtils.xcscheme
  7. +47 −67 Package.resolved
  8. +10 −17 Package.swift
  9. +81 −3 README.md
  10. +0 −10 Sources/TorusUtils/AbstractTorusUtils.swift
  11. +1 −6 Sources/TorusUtils/Constants.swift
  12. +0 −173 Sources/TorusUtils/DataModels.swift
  13. +77 −0 Sources/TorusUtils/Extensions/Array+Extension.swift
  14. +14 −2 Sources/TorusUtils/Extensions/Data+Extension.swift
  15. +0 −2 Sources/TorusUtils/Extensions/OSLog+categories.swift
  16. +0 −7 Sources/TorusUtils/Extensions/Sequence+Extension.swift
  17. +32 −44 Sources/TorusUtils/Extensions/String+Extension.swift
  18. +0 −1,372 Sources/TorusUtils/Extensions/TorusUtils+extension.swift
  19. +90 −8 Sources/TorusUtils/Helpers/Common.swift
  20. +37 −0 Sources/TorusUtils/Helpers/EncryptionUtils.swift
  21. +25 −52 Sources/TorusUtils/Helpers/Error.swift
  22. +0 −238 Sources/TorusUtils/Helpers/JSONRPCRequest.swift
  23. +197 −0 Sources/TorusUtils/Helpers/KeyUtils.swift
  24. +137 −140 Sources/TorusUtils/Helpers/LangrangeInterpolatePoly.swift
  25. +92 −0 Sources/TorusUtils/Helpers/MetadataUtils.swift
  26. +616 −0 Sources/TorusUtils/Helpers/NodeUtils.swift
  27. +1 −8 Sources/TorusUtils/Helpers/{NetworkingHelper.swift → httpMethod.swift}
  28. +20 −0 Sources/TorusUtils/Helpers/jsonRPC/ErrorMessage.swift
  29. +16 −0 Sources/TorusUtils/Helpers/jsonRPC/JRPCRequest.swift
  30. +51 −0 Sources/TorusUtils/Helpers/jsonRPC/JRPCResponse.swift
  31. +10 −0 Sources/TorusUtils/Helpers/jsonRPC/Requests/CommitmentRequestParams.swift
  32. +11 −0 Sources/TorusUtils/Helpers/jsonRPC/Requests/GetNonceParams.swift
  33. +11 −0 Sources/TorusUtils/Helpers/jsonRPC/Requests/GetOrSetKeyParams.swift
  34. +23 −0 Sources/TorusUtils/Helpers/jsonRPC/Requests/NonceMetadataParams.swift
  35. +28 −0 Sources/TorusUtils/Helpers/jsonRPC/Requests/SetNonceData.swift
  36. +45 −0 Sources/TorusUtils/Helpers/jsonRPC/Requests/ShareRequestParams.swift
  37. +17 −0 Sources/TorusUtils/Helpers/jsonRPC/Responses/CommitmentRequestResult.swift
  38. +9 −0 Sources/TorusUtils/Helpers/jsonRPC/Responses/GetMetadataResponse.swift
  39. +27 −0 Sources/TorusUtils/Helpers/jsonRPC/Responses/GetOrSetNonceResult.swift
  40. +11 −0 Sources/TorusUtils/Helpers/jsonRPC/Responses/IsNewKeyResponse.swift
  41. +49 −0 Sources/TorusUtils/Helpers/jsonRPC/Responses/KeyAssignment.swift
  42. +76 −0 Sources/TorusUtils/Helpers/jsonRPC/Responses/ShareRequestResult.swift
  43. +42 −0 ...es/TorusUtils/Helpers/jsonRPC/Responses/VerifierLookupResponse/LegacyVerifierLookupResponse.swift
  44. +7 −37 ...tils/{Interfaces → Helpers/jsonRPC/Responses/VerifierLookupResponse}/VerifierLookupResponse.swift
  45. +0 −30 Sources/TorusUtils/Interfaces/CommitmentRequestResponse.swift
  46. +24 −9 Sources/TorusUtils/Interfaces/{ → Common}/Ecies.swift
  47. +16 −0 Sources/TorusUtils/Interfaces/Common/INodePub.swift
  48. +32 −0 Sources/TorusUtils/Interfaces/Common/ImportedShare.swift
  49. +12 −0 Sources/TorusUtils/Interfaces/Common/PrivateKeyData.swift
  50. +21 −0 Sources/TorusUtils/Interfaces/Common/PubNonce.swift
  51. +15 −0 Sources/TorusUtils/Interfaces/Common/SessionToken.swift
  52. +6 −0 Sources/TorusUtils/Interfaces/Common/UserType.swift
  53. +0 −13 Sources/TorusUtils/Interfaces/ImportedShare.swift
  54. +0 −107 Sources/TorusUtils/Interfaces/KeyAssignInput.swift
  55. +32 −0 Sources/TorusUtils/Interfaces/KeyLookup/KeyLookupResult.swift
  56. +0 −65 Sources/TorusUtils/Interfaces/KeyLookupResponse.swift
  57. +0 −7 Sources/TorusUtils/Interfaces/KeyLookupResult.swift
  58. +39 −0 Sources/TorusUtils/Interfaces/MetaData/MetadataParams.swift
  59. +0 −17 Sources/TorusUtils/Interfaces/RetrieveDecryptAndReconstuctResponse.swift
  60. +0 −28 Sources/TorusUtils/Interfaces/RetrieveSharesResponse.swift
  61. +0 −8 Sources/TorusUtils/Interfaces/SessionToken.swift
  62. +0 −108 Sources/TorusUtils/Interfaces/ShareRequestResult.swift
  63. +0 −29 Sources/TorusUtils/Interfaces/TorusConstants.swift
  64. +68 −0 Sources/TorusUtils/Interfaces/TorusKey.swift
  65. +29 −0 Sources/TorusUtils/Interfaces/TorusOptions.swift
  66. +32 −19 Sources/TorusUtils/Interfaces/TorusPublicKey.swift
  67. +0 −65 Sources/TorusUtils/Interfaces/Toruskey.swift
  68. +0 −13 Sources/TorusUtils/Interfaces/VerifierParams.swift
  69. +0 −28 Sources/TorusUtils/Models/RetrieveSharesResponseModel.swift
  70. +35 −19 Sources/TorusUtils/Point.swift
  71. +7 −15 Sources/TorusUtils/Polynomial.swift
  72. +13 −4 Sources/TorusUtils/Share.swift
  73. +300 −442 Sources/TorusUtils/TorusUtils.swift
  74. +33 −0 Sources/TorusUtils/TorusUtilsExtraParams.swift
  75. +26 −0 Sources/TorusUtils/VerifierParams.swift
  76. +117 −106 Tests/TorusUtilsTests/AquaTest.swift
  77. +39 −0 Tests/TorusUtilsTests/BaseTests/Combinations.swift
  78. +3 −4 Tests/TorusUtilsTests/{Helpers → BaseTests}/EtherAddress.swift
  79. +19 −0 Tests/TorusUtilsTests/BaseTests/HexEncodedString.swift
  80. +5 −5 Tests/TorusUtilsTests/{Helpers → BaseTests}/Lagrange.swift
  81. +171 −0 Tests/TorusUtilsTests/Celeste.swift
  82. +80 −68 Tests/TorusUtilsTests/CyanTest.swift
  83. +13 −2 Tests/TorusUtilsTests/{Utils → Helpers}/JWTUtils.swift
  84. +0 −133 Tests/TorusUtilsTests/IntegrationTest.swift
  85. +101 −97 Tests/TorusUtilsTests/MainnetTest.swift
  86. +307 −0 Tests/TorusUtilsTests/SapphireDevnetTest.swift
  87. +285 −0 Tests/TorusUtilsTests/SapphireMainnetTests.swift
  88. +0 −390 Tests/TorusUtilsTests/SapphireTest.swift
  89. +0 −21 Tests/TorusUtilsTests/StubURLProtocolTest.swift
  90. +117 −89 Tests/TorusUtilsTests/TestnetTest.swift
  91. +0 −42 Tests/TorusUtilsTests/Utils/MockTorusUtils.swift
  92. +0 −518 Tests/TorusUtilsTests/Utils/StubURLProtocol.swift
  93. +116 −54 Tests/TorusUtilsTests/oneKeyTest.swift
  94. +3 −4 Torus-utils.podspec
  95. +14 −27 cocoapods/Podfile.lock
  96. +16 −7 cocoapods/TestApplication.xcodeproj/project.pbxproj
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -25,8 +25,8 @@ jobs:
platform:
- iOS
steps:
- uses: actions/checkout@v2.3.4
- uses: mxcl/xcodebuild@v1
- uses: actions/checkout@v4
- uses: mxcl/xcodebuild@v3.0.0
with:
platform: ${{ matrix.platform }}
action: test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -49,7 +49,6 @@ playground.xcworkspace
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
.swiftpm/

.build/

3 changes: 3 additions & 0 deletions .periphery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
retain_public: true
targets:
- TorusUtils
24 changes: 24 additions & 0 deletions .swiftpm/TorusUtils.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "9F2D8848-AB66-4789-A38F-C7E010657904",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {
"testRepetitionMode" : "retryOnFailure"
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "TorusUtilsTests",
"name" : "TorusUtilsTests"
}
}
],
"version" : 1
}
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/TorusUtils.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1540"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "TorusUtils"
BuildableName = "TorusUtils"
BlueprintName = "TorusUtils"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:.swiftpm/TorusUtils.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "TorusUtilsTests"
BuildableName = "TorusUtilsTests"
BlueprintName = "TorusUtilsTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "TorusUtils"
BuildableName = "TorusUtils"
BlueprintName = "TorusUtils"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
114 changes: 47 additions & 67 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,70 +1,50 @@
{
"object": {
"pins": [
{
"package": "AnyCodable",
"repositoryURL": "https://github.com/Flight-School/AnyCodable",
"state": {
"branch": null,
"revision": "862808b2070cd908cb04f9aafe7de83d35f81b05",
"version": "0.6.7"
}
},
{
"package": "BigInt",
"repositoryURL": "https://github.com/attaswift/BigInt",
"state": {
"branch": null,
"revision": "0ed110f7555c34ff468e72e1686e59721f2b0da6",
"version": "5.3.0"
}
},
{
"package": "CryptoSwift",
"repositoryURL": "https://github.com/krzyzanowskim/CryptoSwift",
"state": {
"branch": null,
"revision": "7892a123f7e8d0fe62f9f03728b17bbd4f94df5c",
"version": "1.8.1"
}
},
{
"package": "curvelib.swift",
"repositoryURL": "https://github.com/tkey/curvelib.swift",
"state": {
"branch": null,
"revision": "7dad3bf1793de263f83406c08c18c9316abf082f",
"version": "0.1.2"
}
},
{
"package": "FetchNodeDetails",
"repositoryURL": "https://github.com/torusresearch/fetch-node-details-swift.git",
"state": {
"branch": null,
"revision": "d591af500f32ce3c88d04af9bb74d746585acfea",
"version": "5.1.0"
}
},
{
"package": "jwt-kit",
"repositoryURL": "https://github.com/vapor/jwt-kit",
"state": {
"branch": null,
"revision": "e05513b5aec24f88012b6e3034115b6bc915356a",
"version": "4.13.2"
}
},
{
"package": "swift-crypto",
"repositoryURL": "https://github.com/apple/swift-crypto.git",
"state": {
"branch": null,
"revision": "f0525da24dc3c6cbb2b6b338b65042bc91cbc4bb",
"version": "3.3.0"
}
"pins" : [
{
"identity" : "bigint",
"kind" : "remoteSourceControl",
"location" : "https://github.com/attaswift/BigInt.git",
"state" : {
"revision" : "0ed110f7555c34ff468e72e1686e59721f2b0da6",
"version" : "5.3.0"
}
]
},
"version": 1
},
{
"identity" : "curvelib.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
"revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
"version" : "2.0.0"
}
},
{
"identity" : "fetch-node-details-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/torusresearch/fetch-node-details-swift",
"state" : {
"revision" : "52fb5efaa94e0fe3775913ab00964bcb51601c2a",
"version" : "8.0.0"
}
},
{
"identity" : "jwt-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/jwt-kit.git",
"state" : {
"revision" : "c2595b9ad7f512d7f334830b4df1fed6e917946a",
"version" : "4.13.4"
}
},
{
"identity" : "swift-crypto",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-crypto.git",
"state" : {
"revision" : "f0525da24dc3c6cbb2b6b338b65042bc91cbc4bb",
"version" : "3.3.0"
}
}
],
"version" : 2
}
27 changes: 10 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,39 +1,32 @@
// swift-tools-version:5.3
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
let package = Package(
name: "TorusUtils",
platforms: [.iOS(.v13), .macOS(.v10_15)],
platforms: [.iOS(.v14), .macOS(.v10_15)],
products: [
.library(
name: "TorusUtils",
targets: ["TorusUtils"])
],
dependencies: [
.package(name: "curvelib.swift", url: "https://github.com/tkey/curvelib.swift", from: "0.1.2"),
.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"),
.package(
name:"AnyCodable",
url: "https://github.com/Flight-School/AnyCodable",
from: "0.6.0"
),
.package(url: "https://github.com/tkey/curvelib.swift", from: "2.0.0"),
.package(url: "https://github.com/torusresearch/fetch-node-details-swift", from: "8.0.0"),
// NB: jwt-kit may only be a dependency in tests or it will break cocoapod support
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"),
],
targets: [
.target(
name: "TorusUtils",
dependencies: ["FetchNodeDetails", "CryptoSwift", "AnyCodable",
dependencies: [
.product(name: "FetchNodeDetails", package: "fetch-node-details-swift"),
.product(name: "curveSecp256k1", package: "curvelib.swift"),
.product(name: "encryption_aes_cbc_sha512", package: "curvelib.swift"),
]
),
]),
.testTarget(
name: "TorusUtilsTests",
dependencies: ["TorusUtils", .product(name: "JWTKit", package: "jwt-kit")]
)
],
swiftLanguageVersions: [.v5]
]
)

Loading