-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: proto v2.16.0-beta.1 (#2689)
* chore: Bumped package version Signed-off-by: ivaylogarnev-limechain <[email protected]> * chore: Updated protos Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Linter fixes Signed-off-by: ivaylogarnev-limechain <[email protected]> * fix: Added new request type Signed-off-by: ivaylogarnev-limechain <[email protected]> --------- Signed-off-by: ivaylogarnev-limechain <[email protected]>
- Loading branch information
1 parent
476c09e
commit df25908
Showing
7 changed files
with
189 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
packages/proto/src/proto/services/auxiliary/tss/tss_encryption_key.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* # Tss Encryption Key Transaction | ||
* | ||
* ### Keywords | ||
* The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | ||
* "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this | ||
* document are to be interpreted as described in | ||
* [RFC2119](https://www.ietf.org/rfc/rfc2119) and clarified in | ||
* [RFC8174](https://www.ietf.org/rfc/rfc8174). | ||
*/ | ||
syntax = "proto3"; | ||
|
||
package com.hedera.hapi.services.auxiliary.tss; | ||
|
||
/* | ||
* Copyright (C) 2024 Hedera Hashgraph, LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
option java_package = "com.hedera.hapi.services.auxiliary.tss.legacy"; | ||
// <<<pbj.java_package = "com.hedera.hapi.services.auxiliary.tss">>> This comment is special code for setting PBJ Compiler java package | ||
option java_multiple_files = true; | ||
|
||
/** | ||
* A transaction body for sending the public TSS encryption key. | ||
*/ | ||
message TssEncryptionKeyTransactionBody { | ||
/** | ||
* The raw bytes of the public TSS encryption key of the node sending the transaction. | ||
* <p> | ||
* This value MUST be set.<br/> | ||
* This value MUST NOT be empty.<br/> | ||
*/ | ||
bytes publicTssEncryptionKey = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
packages/proto/src/proto/services/state/tss/tss_status.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
/** | ||
* # Tss Message Map Key | ||
* | ||
* ### Keywords | ||
* The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | ||
* "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this | ||
* document are to be interpreted as described in | ||
* [RFC2119](https://www.ietf.org/rfc/rfc2119) and clarified in | ||
* [RFC8174](https://www.ietf.org/rfc/rfc8174). | ||
*/ | ||
syntax = "proto3"; | ||
|
||
package com.hedera.hapi.node.state.tss; | ||
|
||
/* | ||
* Copyright (C) 2024 Hedera Hashgraph, LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
option java_package = "com.hedera.hapi.node.state.tss.legacy"; | ||
// <<<pbj.java_package = "com.hedera.hapi.node.state.tss">>> This comment is special code for setting PBJ Compiler java package | ||
option java_multiple_files = true; | ||
|
||
/** | ||
* A Singleton state object that represents the status of the TSS keying process. | ||
* | ||
* This key SHALL be used to determine the stage of the TSS keying process. | ||
*/ | ||
message TssStatus { | ||
|
||
/** | ||
* An enum representing the status of the TSS keying process.<br/> | ||
* <p> | ||
* This status SHALL be used to determine the state of the TSS keying process.<br/> | ||
* This value MUST be set when tss is enabled. | ||
*/ | ||
TssKeyingStatus tss_keying_status = 1; | ||
|
||
/** | ||
* An enum representing the key either active roster or candidate roster.<br/> | ||
* This value will be to key active roster if it is genesis stage | ||
* <p> | ||
* This value MUST be set. | ||
*/ | ||
RosterToKey roster_to_key = 2; | ||
|
||
/** | ||
* A hash of the ledger_id resulting from the TSS keying process.<br/> | ||
* If this value is empty, the TSS keying process has not yet completed. | ||
* <p> | ||
* This value COULD be empty.<br/> | ||
* This value MUST contain a valid hash after the TSS keying process is complete.<br/> | ||
*/ | ||
bytes ledger_id = 3; | ||
} | ||
|
||
/** | ||
* An enum representing the status of the TSS keying process. | ||
* | ||
* This status SHALL be used to determine the state of the TSS keying process. | ||
*/ | ||
enum TssKeyingStatus { | ||
|
||
/** | ||
* The TSS keying process has not yet reached the threshold for encryption | ||
* keys. | ||
*/ | ||
WAITING_FOR_ENCRYPTION_KEYS = 0; | ||
|
||
/** | ||
* The TSS keying process has not yet reached the threshold for TSS messages. | ||
*/ | ||
WAITING_FOR_THRESHOLD_TSS_MESSAGES = 1; | ||
|
||
/** | ||
* The TSS keying process has not yet reached the threshold for TSS votes. | ||
*/ | ||
WAITING_FOR_THRESHOLD_TSS_VOTES = 2; | ||
|
||
/** | ||
* The TSS keying process has completed and the ledger id is set. | ||
*/ | ||
KEYING_COMPLETE = 3; | ||
} | ||
|
||
/** | ||
* An enum representing the key either active roster or candidate roster. | ||
* This value will be to key active roster if it is genesis stage. | ||
*/ | ||
enum RosterToKey { | ||
|
||
/** | ||
* Key the active roster. This is true when we are keying roster on genesis stage. | ||
*/ | ||
ACTIVE_ROSTER = 0; | ||
|
||
/** | ||
* Key the candidate roster. This is true when we are keying roster on non-genesis stage. | ||
*/ | ||
CANDIDATE_ROSTER = 1; | ||
|
||
/** | ||
* Key none of the roster. This is true when we are not keying any roster. | ||
*/ | ||
NONE = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters