-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove inexact-weight TSS implementation (#17214)
Signed-off-by: Michael Tinker <[email protected]>
- Loading branch information
1 parent
4f476f9
commit 7e8fc98
Showing
126 changed files
with
733 additions
and
9,241 deletions.
There are no files selected for viewing
88 changes: 0 additions & 88 deletions
88
hapi/hedera-protobufs/services/auxiliary/tss/tss_share_signature.proto
This file was deleted.
Oops, something went wrong.
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
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
43 changes: 43 additions & 0 deletions
43
hedera-node/hedera-app/src/jmh/java/com/hedera/node/app/blocks/MockBlockHashSigner.java
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,43 @@ | ||
/* | ||
* Copyright (C) 2024-2025 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. | ||
*/ | ||
|
||
package com.hedera.node.app.blocks; | ||
|
||
import static com.hedera.node.app.hapi.utils.CommonUtils.noThrowSha384HashOf; | ||
import static java.util.Objects.requireNonNull; | ||
|
||
import com.hedera.pbj.runtime.io.buffer.Bytes; | ||
import edu.umd.cs.findbugs.annotations.NonNull; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* A mock implementation of the {@link BlockHashSigner} that "signs" block hashes by | ||
* scheduling their SHA-384 hash. | ||
*/ | ||
public enum MockBlockHashSigner implements BlockHashSigner { | ||
MOCK_BLOCK_HASH_SIGNER; | ||
|
||
@Override | ||
public boolean isReady() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public CompletableFuture<Bytes> signFuture(@NonNull final Bytes blockHash) { | ||
requireNonNull(blockHash); | ||
return CompletableFuture.supplyAsync(() -> noThrowSha384HashOf(blockHash)); | ||
} | ||
} |
Oops, something went wrong.