From a1e00141f2aac119a64b77867bc8c63af3de29f6 Mon Sep 17 00:00:00 2001 From: malachy Date: Tue, 19 Sep 2023 11:19:34 +0100 Subject: [PATCH] Revert "CORE-9975: Add support for key category parameter to signing API" This reverts commit 1e2c46c02c604f2bdeb9d24bda4e6b76c47e8cd8. --- .../v5/application/crypto/SigningService.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/application/src/main/java/net/corda/v5/application/crypto/SigningService.java b/application/src/main/java/net/corda/v5/application/crypto/SigningService.java index 9f3a7f2e1b..0dc42b71ef 100644 --- a/application/src/main/java/net/corda/v5/application/crypto/SigningService.java +++ b/application/src/main/java/net/corda/v5/application/crypto/SigningService.java @@ -41,28 +41,6 @@ public interface SigningService { @NotNull DigitalSignature.WithKeyId sign(@NotNull byte[] bytes, @NotNull PublicKey publicKey, @NotNull SignatureSpec signatureSpec); - /** - * Using the provided signing {@link PublicKey}, internally looks up the matching {@link PrivateKey} and signs the data. - * - * @param bytes The data to sign over using the chosen key. - * @param publicKey The {@link PublicKey} partner to an internally held {@link PrivateKey}, either derived from the node's - * primary identity, or previously generated via the freshKey method. If the {@link PublicKey} is actually - * a {@link CompositeKey}, the first leaf signing key hosted by the node is used. - * @param signatureSpec The {@link SignatureSpec} to use when producing this signature. - * @param context The execution context of the signing operation as a map of strings. Currently accepts the following parameters - * - * - * @return A {@link DigitalSignature.WithKeyId} representing the signed data and the {@link PublicKey} that belongs to the - * same {@link KeyPair} as the {@link PrivateKey} that signed the data. - * - * @throws CordaRuntimeException If the input key is not a member of {@code keys}. - */ - @Suspendable - @NotNull - DigitalSignature.WithKeyId sign(@NotNull byte[] bytes, @NotNull PublicKey publicKey, @NotNull SignatureSpec signatureSpec, @NotNull Map context); - /** * Looks into a set of signing keys to find keys owned by the caller. In case of {@link CompositeKey} it looks into * the composite key leaves and returns the firstly found owned composite key leaf.