com.digitalasset.canton.participant.protocol.validation
ModelConformanceChecker
Companion object ModelConformanceChecker
class ModelConformanceChecker extends NamedLogging
Allows for checking model conformance of a list of transaction view trees. If successful, outputs the received transaction as LfVersionedTransaction along with TransactionMetadata.
- Alphabetic
- By Inheritance
- ModelConformanceChecker
- NamedLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ModelConformanceChecker(reinterpret: (ContractAndKeyLookup, Set[LfPartyId], LfCommand, CantonTimestamp, CantonTimestamp, Option[LfHash], Boolean, TraceContext) => EitherT[Future, DAMLeError, (LfVersionedTransaction, TransactionMetadata, LfKeyResolver)], transactionTreeFactory: TransactionTreeFactory, loggerFactory: NamedLoggerFactory)(implicit executionContext: ExecutionContext)
- reinterpret
reinterprets the lf command to a transaction.
- transactionTreeFactory
reconstructs a transaction view from the reinterpreted action description.
Value Members
- def check(rootViewsWithInputKeys: NonEmpty[Seq[(TransactionViewTree, LfKeyResolver)]], requestCounter: RequestCounter, topologySnapshot: TopologySnapshot, commonData: CommonData)(implicit traceContext: TraceContext): EitherT[Future, Error, Result]
Reinterprets the transaction resulting from the received transaction view trees.
Reinterprets the transaction resulting from the received transaction view trees.
- rootViewsWithInputKeys
all received transaction view trees contained in a confirmation request that have the same transaction id and represent a top-most view
- commonData
the common data of all the (rootViewTree : TransactionViewTree) trees in
rootViewsWithInputKeys
- returns
the resulting LfTransaction with com.digitalasset.canton.protocol.LfContractIds only
- val reinterpret: (ContractAndKeyLookup, Set[LfPartyId], LfCommand, CantonTimestamp, CantonTimestamp, Option[LfHash], Boolean, TraceContext) => EitherT[Future, DAMLeError, (LfVersionedTransaction, TransactionMetadata, LfKeyResolver)]
- val transactionTreeFactory: TransactionTreeFactory