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();
}
}
Aggregations