Skip to content

Commit

Permalink
Submit DER signature directly
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel committed Mar 11, 2024
1 parent dd03a2e commit 32ebb68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
targets: ["SpruceIDWalletSdk"])
],
dependencies: [
.package(url: "https://github.com/spruceid/wallet-sdk-rs.git", from: "0.0.24"),
.package(url: "https://github.com/spruceid/wallet-sdk-rs.git", from: "0.0.25"),
// .package(path: "../wallet-sdk-rs"),
.package(url: "https://github.com/apple/swift-algorithms", from: "1.2.0")
],
Expand Down
3 changes: 1 addition & 2 deletions Sources/WalletSdk/MDoc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ public class BLESessionManager {
self.cancel()
return
}
let signature = try P256.Signing.ECDSASignature(derRepresentation: derSignature)
let response = try SpruceIDWalletSdkRs.submitSignature(sessionManager: sessionManager!,
signature: signature.rawRepresentation)
derSignature: derSignature)
self.bleManager.writeOutgoingValue(data: response)
} catch {
self.callback.update(state: .error("\(error)"))
Expand Down

0 comments on commit 32ebb68

Please sign in to comment.