Search in sources :

Example 1 with PlatformSigsCreationResult

use of com.hedera.services.sigs.PlatformSigsCreationResult in project hedera-services by hashgraph.

the class PrecheckVerifier method getAvailSigs.

private List<TransactionSignature> getAvailSigs(List<JKey> reqKeys, SignedTxnAccessor accessor) throws Exception {
    final var pkToSigFn = accessor.getPkToSigsFn();
    final var sigFactory = new ReusableBodySigningFactory(accessor);
    PlatformSigsCreationResult creationResult = createCryptoSigsFrom(reqKeys, pkToSigFn, sigFactory);
    if (creationResult.hasFailed()) {
        throw creationResult.getTerminatingEx();
    } else {
        return creationResult.getPlatformSigs();
    }
}
Also used : PlatformSigsCreationResult(com.hedera.services.sigs.PlatformSigsCreationResult) ReusableBodySigningFactory(com.hedera.services.sigs.factories.ReusableBodySigningFactory)

Aggregations

PlatformSigsCreationResult (com.hedera.services.sigs.PlatformSigsCreationResult)1 ReusableBodySigningFactory (com.hedera.services.sigs.factories.ReusableBodySigningFactory)1