SinglePartyNotaryService

Base implementation for a notary service operated by a singe party.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class CommitOperation(val service: SinglePartyNotaryService, val inputs: List<StateRef>, val txId: SecureHash, val caller: Party, val requestSignature: NotarisationRequestSignature, val timeWindow: TimeWindow?, val references: List<StateRef>) : FlowExternalAsyncOperation<UniquenessProvider.Result>

Required for the flow to be able to suspend until the commit is complete. This object will be included in the flow checkpoint.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val initiatingFlows: <Error class: unknown class>

Mapping between @InitiatingFlow classes and factory methods that produce responder flows. Can be overridden in case of advanced notary service that serves both custom and standard flows.

Link copied to clipboard
Link copied to clipboard
abstract val services: ServiceHub

Functions

Link copied to clipboard
open fun commitInputStates(inputs: List<StateRef>, txId: SecureHash, caller: Party, requestSignature: NotarisationRequestSignature, timeWindow: TimeWindow?, references: List<StateRef>): UniquenessProvider.Result

Attempts to commit the specified transaction txId.

Link copied to clipboard
abstract fun createServiceFlow(otherPartySession: FlowSession): FlowLogic<Void?>

Produces a notary service flow which has the corresponding sends and receives as NotaryFlow.Client.

Link copied to clipboard

Estimate the wait time to be notarised taking into account the new request size.

Link copied to clipboard
Link copied to clipboard

Sign a single transaction.

Link copied to clipboard
abstract fun start()
Link copied to clipboard
abstract fun stop()
Link copied to clipboard
open override fun toToken(context: SerializeAsTokenContext): <Error class: unknown class>