Skip to content

Commit ef20691

Browse files
authored
Merge pull request #109 from gfusee/fix/open_source_swift_crypto
Used open- source swift-crypto
2 parents 5bd461d + 58320b9 commit ef20691

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Package.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ if !isWasm {
6363
packageDependencies.append(contentsOf: [
6464
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"),
6565
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0"),
66-
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0")
66+
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
67+
.package(url: "https://github.com/apple/swift-crypto.git", exact: "3.12.2")
6768
])
6869

6970
libraryDependencies.append(contentsOf: [
7071
"SpaceKitABI",
7172
"ABIMetaMacro",
72-
.product(name: "BigInt", package: "BigInt")
73+
.product(name: "BigInt", package: "BigInt"),
74+
.product(name: "Crypto", package: "swift-crypto")
7375
])
7476

7577
nonWasmTargets.append(contentsOf: [

Sources/SpaceKit/api/dummy/TransactionContainer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if !WASM
22
import Foundation
33
import BigInt
4-
import CryptoKit
4+
import Crypto
55

66
package enum TransactionContainerErrorBehavior {
77
case blockThread

Sources/SpaceKit/api/dummy/utils/DeterministicRNG.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#if !WASM
2-
import CryptoKit
2+
import Crypto
33

44
package struct DeterministicRNG {
55
private var state: UInt64

0 commit comments

Comments
 (0)