diff --git a/Package.swift b/Package.swift index f89b1f2..26a613b 100644 --- a/Package.swift +++ b/Package.swift @@ -23,7 +23,7 @@ let package = Package( path: "Sources/curve_secp256k1/curve_secp256k1.xcframework" ), - .target(name: "lib", + .target(name: "curvelib", dependencies: ["curve_secp256k1"], path: "Sources/curve_secp256k1" ), @@ -31,7 +31,7 @@ let package = Package( // Targets can depend on other targets in this package and products from dependencies. .target( name: "curvelib.swift", - dependencies: ["lib"], + dependencies: ["curvelib"], path: "Sources/curvelib" ), .testTarget( diff --git a/Sources/curvelib/ECDH.swift b/Sources/curvelib/ECDH.swift index fda21c6..5e98bf5 100644 --- a/Sources/curvelib/ECDH.swift +++ b/Sources/curvelib/ECDH.swift @@ -1,7 +1,7 @@ import Foundation -#if canImport(lib) - import lib +#if canImport(curvelib) + import curvelib #endif public final class ECDH { diff --git a/Sources/curvelib/ECDSA.swift b/Sources/curvelib/ECDSA.swift index 9f7bfe5..30db9ac 100644 --- a/Sources/curvelib/ECDSA.swift +++ b/Sources/curvelib/ECDSA.swift @@ -1,7 +1,7 @@ import Foundation -#if canImport(lib) - import lib +#if canImport(curvelib) + import curvelib #endif public final class ECDSA { diff --git a/Sources/curvelib/PublicKey.swift b/Sources/curvelib/PublicKey.swift index c23d35e..4142eb7 100644 --- a/Sources/curvelib/PublicKey.swift +++ b/Sources/curvelib/PublicKey.swift @@ -1,7 +1,7 @@ import Foundation -#if canImport(lib) - import lib +#if canImport(curvelib) + import curvelib #endif public final class PublicKey { diff --git a/Sources/curvelib/PublicKeyCollection.swift b/Sources/curvelib/PublicKeyCollection.swift index 0f6019b..f7eb52b 100644 --- a/Sources/curvelib/PublicKeyCollection.swift +++ b/Sources/curvelib/PublicKeyCollection.swift @@ -1,7 +1,7 @@ import Foundation -#if canImport(lib) - import lib +#if canImport(curvelib) + import curvelib #endif public final class PublicKeyCollection { diff --git a/Sources/curvelib/SecretKey.swift b/Sources/curvelib/SecretKey.swift index 3b3371a..e880748 100644 --- a/Sources/curvelib/SecretKey.swift +++ b/Sources/curvelib/SecretKey.swift @@ -1,7 +1,7 @@ import Foundation -#if canImport(lib) - import lib +#if canImport(curvelib) + import curvelib #endif public final class SecretKey { diff --git a/Sources/curvelib/Signature.swift b/Sources/curvelib/Signature.swift index 6cf378d..13a4c8a 100644 --- a/Sources/curvelib/Signature.swift +++ b/Sources/curvelib/Signature.swift @@ -1,7 +1,7 @@ import Foundation -#if canImport(lib) - import lib +#if canImport(curvelib) + import curvelib #endif public final class Signature { diff --git a/Tests/curvelibTests/curvelibTests.swift b/Tests/curvelibTests/curvelibTests.swift index e085617..3649a0c 100644 --- a/Tests/curvelibTests/curvelibTests.swift +++ b/Tests/curvelibTests/curvelibTests.swift @@ -29,7 +29,7 @@ final class curvelibTests: XCTestCase { let pk = try SecretKey().to_public() try pk.add_assign(key: SecretKey()) try pk.mul_assign(key: SecretKey()) - let mul = try pk.mul(key: SecretKey()) + _ = try pk.mul(key: SecretKey()) var serialized = try pk.serialize(compressed: false); XCTAssertEqual(serialized.count, 130) serialized = try pk.serialize(compressed: true);