-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
31 lines (30 loc) · 1.28 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "schnorr-tool",
platforms: [.macOS(.v12)],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-crypto", from: "2.0.0"),
.package(url: "https://github.com/metabolist/base16", from: "1.0.0"),
.package(url: "https://github.com/craigwrong/bech32m", branch: "develop"),
],
targets: [
.binaryTarget(name: "secp256k1",
url: "https://github.com/craigwrong/secp256k1/releases/download/22.0.1-craigwrong.1/secp256k1.xcframework.zip", checksum: "fff5415b72449331212cb75c71a47445cbe54fed061dc82153dcadbffae10f69"
// path: "secp256k1.xcframework"
),
.target(
name: "ECHelper",
dependencies: ["secp256k1"]),
.executableTarget(
name: "schnorr-tool",
dependencies: [
"ECHelper",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Base16", package: "base16"),
.product(name: "Bech32", package: "bech32m"),
.product(name: "Crypto", package: "swift-crypto"),
]),
]
)