From 0b5326a5836a18f48a76659674d0d93800606ae6 Mon Sep 17 00:00:00 2001 From: Matt Hess Date: Fri, 8 Nov 2024 16:11:10 -0700 Subject: [PATCH] fix: Remove tss encryption key from node-related protos (#16512) Signed-off-by: Matt Hess --- .../services/node_create.proto | 23 ----------------- .../services/node_update.proto | 23 ----------------- .../services/state/addressbook/node.proto | 23 ----------------- .../impl/ReadableNodeStoreImpl.java | 3 ++- .../test/handlers/AddressBookTestBase.java | 9 ++----- .../ReadableFreezeUpgradeActionsTest.java | 25 ++++++------------- 6 files changed, 12 insertions(+), 94 deletions(-) diff --git a/hapi/hedera-protobufs/services/node_create.proto b/hapi/hedera-protobufs/services/node_create.proto index 03d6fa282df6..24d06f8a5480 100644 --- a/hapi/hedera-protobufs/services/node_create.proto +++ b/hapi/hedera-protobufs/services/node_create.proto @@ -137,27 +137,4 @@ message NodeCreateTransactionBody { * This field is REQUIRED and MUST NOT be set to an empty `KeyList`. */ proto.Key admin_key = 7; - - /** - * An ALT_BN128 elliptic curve public encryption key.
- * This is controlled by the node operator and specific to this - * node's TSS operations. - *

- * The elliptic curve type MAY change in the future. For example, - * if the Ethereum ecosystem creates precompiles for BLS12_381, - * we may switch to that curve.
- * This value SHALL be specified according to EIP-196 and EIP-197 standards. - * See [EIP-196](https://eips.ethereum.org/EIPS/eip-196#encoding) and - * (EIP-197](https://eips.ethereum.org/EIPS/eip-197#encoding)
- * This field is OPTIONAL (that is, it can initially be null), - * but once set, it MUST NOT be null.
- * If this field is set: - *

- */ - bytes tss_encryption_key = 8; } diff --git a/hapi/hedera-protobufs/services/node_update.proto b/hapi/hedera-protobufs/services/node_update.proto index 7a1e807a7196..f899f9cc5ca8 100644 --- a/hapi/hedera-protobufs/services/node_update.proto +++ b/hapi/hedera-protobufs/services/node_update.proto @@ -161,27 +161,4 @@ message NodeUpdateTransactionBody { * If set, this field MUST NOT be set to an empty `KeyList`. */ proto.Key admin_key = 8; - - /** - * An ALT_BN128 elliptic curve public encryption key.
- * This is controlled by the node operator and specific to this - * node's TSS operations. - *

- * The elliptic curve type MAY change in the future. For example, - * if the Ethereum ecosystem creates precompiles for BLS12_381, - * we may switch to that curve.
- * This value SHALL be specified according to EIP-196 and EIP-197 standards. - * See [EIP-196](https://eips.ethereum.org/EIPS/eip-196#encoding) and - * (EIP-197](https://eips.ethereum.org/EIPS/eip-197#encoding)
- * This field is OPTIONAL (that is, it can initially be null), - * but once set, it MUST NOT be null.
- * If this field is set: - *

- */ - bytes tss_encryption_key = 9; } diff --git a/hapi/hedera-protobufs/services/state/addressbook/node.proto b/hapi/hedera-protobufs/services/state/addressbook/node.proto index 7e5931076520..e00b5f386051 100644 --- a/hapi/hedera-protobufs/services/state/addressbook/node.proto +++ b/hapi/hedera-protobufs/services/state/addressbook/node.proto @@ -146,27 +146,4 @@ message Node { * This field is REQUIRED and MUST NOT be set to an empty `KeyList`. */ proto.Key admin_key = 10; - - /** - * An ALT_BN128 elliptic curve public encryption key.
- * This is controlled by the node operator and specific to this - * node's TSS operations. - *

- * The elliptic curve type MAY change in the future. For example, - * if the Ethereum ecosystem creates precompiles for BLS12_381, - * we may switch to that curve.
- * This value SHALL be specified according to EIP-196 and EIP-197 standards. - * See [EIP-196](https://eips.ethereum.org/EIPS/eip-196#encoding) and - * (EIP-197](https://eips.ethereum.org/EIPS/eip-197#encoding)
- * This field is OPTIONAL (that is, it can initially be null), - * but once set, it MUST NOT be null.
- * If this field is set: - *

- */ - bytes tss_encryption_key = 11; } diff --git a/hedera-node/hedera-addressbook-service-impl/src/main/java/com/hedera/node/app/service/addressbook/impl/ReadableNodeStoreImpl.java b/hedera-node/hedera-addressbook-service-impl/src/main/java/com/hedera/node/app/service/addressbook/impl/ReadableNodeStoreImpl.java index d93b9c38550e..7125eca57ea8 100644 --- a/hedera-node/hedera-addressbook-service-impl/src/main/java/com/hedera/node/app/service/addressbook/impl/ReadableNodeStoreImpl.java +++ b/hedera-node/hedera-addressbook-service-impl/src/main/java/com/hedera/node/app/service/addressbook/impl/ReadableNodeStoreImpl.java @@ -98,7 +98,8 @@ private Roster constructFromNodesState(@NonNull final ReadableKVStatebuilder(NODES_KEY) .value(new EntityNumber(4), node4) .value(new EntityNumber(2), node2) @@ -557,8 +552,7 @@ private void setupNodes2() throws CertificateException, IOException { Bytes.wrap("grpc1CertificateHash"), 2, false, - A_COMPLEX_KEY, - TSS_KEY); + A_COMPLEX_KEY); final var node2 = new Node( 1, asAccount(4), @@ -571,8 +565,7 @@ private void setupNodes2() throws CertificateException, IOException { Bytes.wrap("grpc2CertificateHash"), 4, false, - A_COMPLEX_KEY, - TSS_KEY); + A_COMPLEX_KEY); final var node3 = new Node( 2, asAccount(6), @@ -585,8 +578,7 @@ private void setupNodes2() throws CertificateException, IOException { Bytes.wrap("grpc3CertificateHash"), 1, false, - A_COMPLEX_KEY, - TSS_KEY); + A_COMPLEX_KEY); final var node4 = new Node( 3, asAccount(8), @@ -600,8 +592,7 @@ private void setupNodes2() throws CertificateException, IOException { Bytes.wrap("grpc5CertificateHash"), 8, true, - A_COMPLEX_KEY, - TSS_KEY); + A_COMPLEX_KEY); final var readableNodeState = MapReadableKVState.builder(NODES_KEY) .value(new EntityNumber(3), node4) .value(new EntityNumber(1), node2)