use of com.hedera.services.keys.HederaKeyActivation.ONLY_IF_SIG_IS_VALID in project hedera-services by hashgraph.
the class SigOpsRegressionTest method invokePayerSigActivationScenario.
private boolean invokePayerSigActivationScenario(List<TransactionSignature> knownSigs) {
SigRequirements keysOrder = new SigRequirements(defaultLookupsFor(aliasManager, null, () -> accounts, () -> null, ref -> null, ref -> null), mockSignatureWaivers);
final var impliedOrdering = keysOrder.keysForPayer(platformTxn.getTxn(), CODE_ORDER_RESULT_FACTORY);
final var impliedKey = impliedOrdering.getPayerKey();
platformTxn.setSigMeta(RationalizedSigMeta.forPayerOnly(impliedKey, new ArrayList<>(knownSigs)));
return payerSigIsActive(platformTxn, ONLY_IF_SIG_IS_VALID);
}
Aggregations