use of com.hedera.services.sigs.order.CodeOrderResultFactory.CODE_ORDER_RESULT_FACTORY 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);
}
use of com.hedera.services.sigs.order.CodeOrderResultFactory.CODE_ORDER_RESULT_FACTORY in project hedera-services by hashgraph.
the class SigOpsRegressionTest method invokeOtherPartySigActivationScenario.
private boolean invokeOtherPartySigActivationScenario(List<TransactionSignature> knownSigs) {
platformTxn.getPlatformTxn().clear();
platformTxn.getPlatformTxn().addAll(knownSigs.toArray(new TransactionSignature[0]));
final var hfsSigMetaLookup = new HfsSigMetaLookup(hfs, fileNumbers);
SigRequirements keysOrder = new SigRequirements(defaultLookupsFor(aliasManager, hfsSigMetaLookup, () -> accounts, null, ref -> null, ref -> null), mockSignatureWaivers);
return otherPartySigsAreActive(platformTxn, keysOrder, CODE_ORDER_RESULT_FACTORY);
}
Aggregations