Skip to content

Commit

Permalink
IOS-3289 Remove a curve from params
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Apr 4, 2023
1 parent 7794c69 commit e351826
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public final class AttestWalletKeyCommand: Command {
do {
let isWalletSignatureValid = try self.verifyWalletSignature(response: checkWalletResponse, curve: curve)
let isCardSignatureValid = try self.verifyCardSignature(response: checkWalletResponse,
curve: curve,
cardPublicKey: card.cardPublicKey)
if isWalletSignatureValid && isCardSignatureValid {
completion(.success(checkWalletResponse))
Expand Down Expand Up @@ -145,7 +144,7 @@ public final class AttestWalletKeyCommand: Command {
signature: response.walletSignature)
}

private func verifyCardSignature(response: AttestWalletKeyResponse, curve: EllipticCurve, cardPublicKey: Data) throws -> Bool {
private func verifyCardSignature(response: AttestWalletKeyResponse, cardPublicKey: Data) throws -> Bool {
guard let cardSignature = response.cardSignature else {
return true
}
Expand Down

0 comments on commit e351826

Please sign in to comment.