Skip to content

Commit

Permalink
fix: rename lib to curvelib
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Jan 18, 2024
1 parent 3477abf commit 86a5f14
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ let package = Package(
path: "Sources/curve_secp256k1/curve_secp256k1.xcframework"
),

.target(name: "lib",
.target(name: "curvelib",
dependencies: ["curve_secp256k1"],
path: "Sources/curve_secp256k1"
),
// Targets are the basic building blocks of a package, defining a module or a test suite.
// 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(
Expand Down
4 changes: 2 additions & 2 deletions Sources/curvelib/ECDH.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

#if canImport(lib)
import lib
#if canImport(curvelib)
import curvelib
#endif

public final class ECDH {
Expand Down
4 changes: 2 additions & 2 deletions Sources/curvelib/ECDSA.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

#if canImport(lib)
import lib
#if canImport(curvelib)
import curvelib
#endif

public final class ECDSA {
Expand Down
4 changes: 2 additions & 2 deletions Sources/curvelib/PublicKey.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

#if canImport(lib)
import lib
#if canImport(curvelib)
import curvelib
#endif

public final class PublicKey {
Expand Down
4 changes: 2 additions & 2 deletions Sources/curvelib/PublicKeyCollection.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

#if canImport(lib)
import lib
#if canImport(curvelib)
import curvelib
#endif

public final class PublicKeyCollection {
Expand Down
4 changes: 2 additions & 2 deletions Sources/curvelib/SecretKey.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

#if canImport(lib)
import lib
#if canImport(curvelib)
import curvelib
#endif

public final class SecretKey {
Expand Down
4 changes: 2 additions & 2 deletions Sources/curvelib/Signature.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

#if canImport(lib)
import lib
#if canImport(curvelib)
import curvelib
#endif

public final class Signature {
Expand Down
2 changes: 1 addition & 1 deletion Tests/curvelibTests/curvelibTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86a5f14

Please sign in to comment.