class ConfirmationRequestFactory extends NamedLogging

Factory class for creating confirmation requests from Daml-LF transactions.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConfirmationRequestFactory
  2. NamedLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. 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.

  2. val loggerFactory: NamedLoggerFactory
  3. val transactionTreeFactory: TransactionTreeFactory