All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.node.app.spi.signatures.VerificationAssistant Maven / Gradle / Ivy

There is a newer version: 0.54.1
Show newest version
/*
 * Copyright (C) 2023-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.
 */

package com.hedera.node.app.spi.signatures;

import com.hedera.hapi.node.base.Key;
import java.util.function.BiPredicate;

/**
 * A BiPredicate specialized to assisting and observing the Signature Verification process. Implementations of this
 * interface are expected to, in the test method, return true if and only if the Key passed should be considered valid.
 * This may be based on both the {@link SignatureVerification} provided, as well as other information (such as a set of
 * previously valid keys in state). The "test" method is also an observer of all keys and associated verifications, and
 * may choose to store or further inspect each such key and SignatureVerification.
 * 

* The "test" method will only be called for keys of the "primitive", "Contract ID", and "Delegatable Contract ID" * types. */ public interface VerificationAssistant extends BiPredicate {}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy