com.digitalasset.canton.sequencing.client
SequencedEventValidator
Companion trait SequencedEventValidator
object SequencedEventValidator extends HasLoggerName
- Alphabetic
- By Inheritance
- SequencedEventValidator
- HasLoggerName
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class NoDynamicDomainParameters(error: String) extends SigningTimestampVerificationError with Product with Serializable
- type SigningTimestampAfterSequencingTime = SigningTimestampAfterSequencingTime.type
- final case class SigningTimestampTooOld(tolerance: NonNegativeFiniteDuration) extends SigningTimestampVerificationError with Product with Serializable
- sealed trait SigningTimestampVerificationError extends Product with Serializable with PrettyPrinting
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContextFromNamedLoggingContext(implicit loggingContext: NamedLoggingContext): ErrorLoggingContext
Convert a com.digitalasset.canton.logging.NamedLoggingContext into an com.digitalasset.canton.logging.ErrorLoggingContext to fix the logger name to the current class name.
Convert a com.digitalasset.canton.logging.NamedLoggingContext into an com.digitalasset.canton.logging.ErrorLoggingContext to fix the logger name to the current class name.
- Attributes
- protected
- Definition Classes
- HasLoggerName
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def loggerNameFromThisClass: LoggerNameFromClass
- Attributes
- protected
- Definition Classes
- HasLoggerName
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noValidation(domainId: DomainId, warn: Boolean = true)(implicit loggingContext: NamedLoggingContext): SequencedEventValidator
Do not validate sequenced events.
Do not validate sequenced events. Only use it in case of a programming error and the need to unblock a deployment or if you blindly trust the sequencer.
- warn
whether to log a warning when used
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validateSigningTimestamp(syncCryptoApi: SyncCryptoClient[SyncCryptoApi], signingTimestamp: CantonTimestamp, sequencingTimestamp: CantonTimestamp, latestTopologyClientTimestamp: Option[CantonTimestamp], protocolVersion: ProtocolVersion, warnIfApproximate: Boolean, optimistic: Boolean = false)(implicit loggingContext: NamedLoggingContext, executionContext: ExecutionContext): EitherT[Future, SigningTimestampVerificationError, SyncCryptoApi]
Validates the requested signing timestamp against the sequencing timestamp and the com.digitalasset.canton.protocol.DynamicDomainParameters.sequencerSigningTolerance of the domain parameters valid at the requested signing timestamp.
Validates the requested signing timestamp against the sequencing timestamp and the com.digitalasset.canton.protocol.DynamicDomainParameters.sequencerSigningTolerance of the domain parameters valid at the requested signing timestamp.
- latestTopologyClientTimestamp
The timestamp of an earlier event sent to the topology client such that no topology update has happened between this timestamp (exclusive) and the sequencing timestamp (exclusive).
- warnIfApproximate
Whether to emit a warning if an approximate topology snapshot is used
- optimistic
if true, we'll try to be optimistic and validate the event with the current snapshot approximation instead of the proper snapshot for the signing timestamp. During sequencer key rolling or while updating the dynamic domain parameters, an event might have been signed by a key that was just revoked or with a signing key timestamp that exceeds the com.digitalasset.canton.protocol.DynamicDomainParameters.sequencerSigningTolerance. Optimistic validation may not catch such problems.
- returns
scala.Left$ if the signing timestamp is after the sequencing timestamp or the sequencing timestamp is after the signing timestamp by more than the com.digitalasset.canton.protocol.DynamicDomainParameters.sequencerSigningTolerance valid at the signing timestamp. scala.Right$ the topology snapshot that can be used for signing the event and verifying the signature on the event;
- def validateSigningTimestampUS(syncCryptoApi: SyncCryptoClient[SyncCryptoApi], signingTimestamp: CantonTimestamp, sequencingTimestamp: CantonTimestamp, latestTopologyClientTimestamp: Option[CantonTimestamp], protocolVersion: ProtocolVersion, warnIfApproximate: Boolean, optimistic: Boolean = false)(implicit loggingContext: NamedLoggingContext, executionContext: ExecutionContext, closeContext: CloseContext): EitherT[FutureUnlessShutdown, SigningTimestampVerificationError, SyncCryptoApi]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object SigningTimestampAfterSequencingTime extends SigningTimestampVerificationError with Product with Serializable