-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPackage.swift
66 lines (55 loc) · 1.77 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "WalletKit",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
],
products: [
.library(name: "WalletKit", targets: ["WalletKit"]),
],
dependencies: [
// 🔢 Arbitrary-precision arithmetic in pure Swift
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.0.0"),
// 🔑 Hashing (BCrypt, SHA2, HMAC), encryption (AES), public-key (RSA), and random data generation.
.package(path: "./Sources/CryptoCore"),
],
targets: [
// 📚 -- Mnemonic code for generating deterministic keys
.target(name: "BIP39", dependencies: [
"CryptoCore"
]),
// 💰 -- Hierarchical Deterministic Wallets
.target(name: "BIP32", dependencies: [
"CryptoCore",
"BigInt",
]),
// 🏦 -- Multi-Account Hierarchy for Deterministic Wallets
.target(name: "BIP44", dependencies: [
"BIP32"
]),
// 🧰 -- The main event!
.target(name: "WalletKit", dependencies: [
"BIP39",
"BIP44" /* incl. BIP32 */,
]),
// Testing
.target(name: "XCTHelpers", dependencies:[
"WalletKit",
]),
// Test -- BIP39
.testTarget(name: "BIP39Tests", dependencies: [
"XCTHelpers",
]),
// Test -- BIP32
.testTarget(name: "BIP32Tests", dependencies: [
"XCTHelpers",
]),
// Test -- BIP44
.testTarget(name: "BIP44Tests", dependencies: [
"XCTHelpers",
]),
]
)