Skip to content

Commit 4d05d7b

Browse files
committed
Remove print statements
1 parent f848687 commit 4d05d7b

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Sources/ATCryptography/DIDKey.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ public struct DIDKey {
2525

2626
let keyBytes = try pluginType.decompress(publicKey: Array(prefixedBytes.dropFirst(pluginType.prefix.count)))
2727

28-
// There appears to be a bug that's causing the public key to have less than the expected amount, but it's nearly impossible to replicate
29-
// as it happens very rarely.
30-
#if DEBUG
31-
print("Public Key count: \(keyBytes.count)")
32-
print("First byte for the public key: \([UInt8](keyBytes)[0])")
33-
#endif
3428
return ParsedMultikey(jwtAlgorithm: pluginType.jwtAlgorithm, keyBytes: keyBytes)
3529
}
3630

Sources/ATCryptography/p256/P256Encoding.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ public struct P256Encoding {
2626
public static func compress(publicKey: [UInt8]) throws -> [UInt8] {
2727
let rawKey: [UInt8]
2828

29-
// There appears to be a bug that's causing the public key to have less than the expected amount, but it's nearly impossible to replicate
30-
// as it happens very rarely.
31-
#if DEBUG
32-
print("Byte count: \(publicKey.count)")
33-
#endif
3429
switch publicKey.count {
3530
case 65 where publicKey.first == 0x04:
3631
// Remove the uncompressed prefix (0x04).
@@ -41,11 +36,6 @@ public struct P256Encoding {
4136
rawKey = publicKey
4237

4338
default:
44-
// There appears to be a bug that's causing the public key to have less than the expected amount, but it's nearly impossible to replicate
45-
// as it happens very rarely.
46-
#if DEBUG
47-
print("Bytes: \(publicKey)")
48-
#endif
4939
throw EllipticalCurveEncodingError.invalidKeyLength(expected: 65, actual: publicKey.count)
5040
}
5141

0 commit comments

Comments
 (0)