diff --git a/Sources/JSONWebAlgorithms/CryptoImplementation/JWKCryptoPresentation.swift b/Sources/JSONWebAlgorithms/CryptoImplementation/JWKCryptoPresentation.swift index 5e62074..a29793d 100644 --- a/Sources/JSONWebAlgorithms/CryptoImplementation/JWKCryptoPresentation.swift +++ b/Sources/JSONWebAlgorithms/CryptoImplementation/JWKCryptoPresentation.swift @@ -60,11 +60,6 @@ public extension JWK { throw JWK.Error.missingYComponent } let data = x + y - print(self.keyID) - print(x.toHexString()) - print(x.count) - print(y.toHexString()) - print(y.count) switch type { case is P256.KeyAgreement.PublicKey.Type: return try P256.KeyAgreement.PublicKey(rawRepresentation: data) as! T diff --git a/Sources/JSONWebAlgorithms/CryptoImplementation/KeyGeneration/EC/secp256k1+KeyGeneration.swift b/Sources/JSONWebAlgorithms/CryptoImplementation/KeyGeneration/EC/secp256k1+KeyGeneration.swift index 648d5db..08f748d 100644 --- a/Sources/JSONWebAlgorithms/CryptoImplementation/KeyGeneration/EC/secp256k1+KeyGeneration.swift +++ b/Sources/JSONWebAlgorithms/CryptoImplementation/KeyGeneration/EC/secp256k1+KeyGeneration.swift @@ -36,9 +36,9 @@ struct Secp256k1KeyGeneration: KeyGeneration { public func generateKeyPairJWK(purpose: KeyGenerationPurpose) throws -> JWK { switch purpose { case .signing: - return try secp256k1.Signing.PrivateKey().jwkRepresentation + return try secp256k1.Signing.PrivateKey(format: .uncompressed).jwkRepresentation case .keyAgreement: - return try secp256k1.KeyAgreement.PrivateKey().jwkRepresentation + return try secp256k1.KeyAgreement.PrivateKey(format: .uncompressed).jwkRepresentation } } }