Skip to content

Commit

Permalink
Version bug fix for iOS devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Arnett committed Feb 21, 2024
1 parent 752d1e1 commit bef89f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SuiKit/Types/Structs/Cryptography/Signature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public struct Signature: Equatable, KeyProtocol {
let pubKey = try SECP256K1PublicKey(data: Data(pubKeyBytes))
return Signature(signature: Data(signature), publickey: pubKey.key, signatureScheme: .SECP256K1)
} else if signatureScheme == "SECP256R1" {
if #available(macOS 13.0, *) {
if #available(macOS 13.0, iOS 16.0, *) {
let signature = Array(bytes[1...(bytes.count - SECP256R1PublicKey.LENGTH)])
let pubKeyBytes = Array(bytes[(1 + signature.count)...])
let pubKey = try SECP256R1PublicKey(data: Data(pubKeyBytes))
Expand Down
1 change: 1 addition & 0 deletions Tests/SuiKitTests/E2E/Utils/KioskToolbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Foundation
import SuiKit

@available(iOS 16.0, *)
internal struct KioskToolbox {
public let testToolbox: TestToolbox
public let kioskClient: KioskClient
Expand Down

0 comments on commit bef89f2

Please sign in to comment.