c
com.digitalasset.canton.participant.protocol.submission
ConfirmationRequestFactory
Companion object ConfirmationRequestFactory
class ConfirmationRequestFactory extends NamedLogging
Factory class for creating confirmation requests from Daml-LF transactions.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ConfirmationRequestFactory
- NamedLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ConfirmationRequestFactory(submitterNode: ParticipantId, domain: DomainId, loggingConfig: LoggingConfig, loggerFactory: NamedLoggerFactory)(transactionTreeFactory: TransactionTreeFactory, seedGenerator: SeedGenerator)(implicit executionContext: ExecutionContext)
- transactionTreeFactory
used to create the payload
- seedGenerator
used to derive the transaction seed
Value Members
- def createConfirmationRequest(wfTransaction: WellFormedTransaction[WithoutSuffixes], confirmationPolicy: ConfirmationPolicy, submitterInfo: SubmitterInfo, ledgerTime: CantonTimestamp, workflowId: Option[WorkflowId], mediatorId: MediatorId, cryptoSnapshot: DomainSnapshotSyncCryptoApi, contractInstanceOfId: SerializableContractOfId, optKeySeed: Option[SecureRandomness], version: ProtocolVersion)(implicit traceContext: TraceContext): EitherT[Future, ConfirmationRequestCreationError, ConfirmationRequest]
Creates a confirmation request from a wellformed transaction.
Creates a confirmation request from a wellformed transaction.
- cryptoSnapshot
used to determine participants of parties and for signing and encryption
- returns
the confirmation request and the transaction root hash (aka transaction id) or an error. See the documentation of com.digitalasset.canton.participant.protocol.submission.ConfirmationRequestFactory.ConfirmationRequestCreationError for more information on error cases.
- val loggerFactory: NamedLoggerFactory
- Definition Classes
- ConfirmationRequestFactory → NamedLogging
- val transactionTreeFactory: TransactionTreeFactory