case class SignedContent[+A <: ProtocolVersionedMemoizedEvidence](content: A, signature: Signature, timestampOfSigningKey: Option[CantonTimestamp]) extends HasProtocolVersionedWrapper[SignedContent[ProtocolVersionedMemoizedEvidence]] with Serializable with Product
- timestampOfSigningKey
The timestamp of the topology snapshot that was used for signing the content. scala.None$ if the signing timestamp can be derived from the content.
- Alphabetic
- By Inheritance
- SignedContent
- Product
- Equals
- Serializable
- HasProtocolVersionedWrapper
- HasRepresentativeProtocolVersion
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SignedContent(content: A, signature: Signature, timestampOfSigningKey: Option[CantonTimestamp])
- timestampOfSigningKey
The timestamp of the topology snapshot that was used for signing the content. scala.None$ if the signing timestamp can be derived from the content.
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 castRepresentativeProtocolVersion[V, T <: HasSupportedProtoVersions[V]](target: T): Either[String, RepresentativeProtocolVersion[V]]
Casts this instance's representative protocol version to one for the target type.
Casts this instance's representative protocol version to one for the target type. This only succeeds if the versioning schemes are the same.
- Definition Classes
- HasProtocolVersionedWrapper
- Annotations
- @SuppressWarnings()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def companionObj: HasProtocolVersionedWrapperCompanion[SignedContent[ProtocolVersionedMemoizedEvidence]]
- Definition Classes
- SignedContent → HasProtocolVersionedWrapper
- val content: A
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getCryptographicEvidence: ByteString
- def isEquivalentTo(protocolVersion: ProtocolVersion): Boolean
- Definition Classes
- HasProtocolVersionedWrapper
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def protoVersion: ProtoVersion
Yields the Proto version that this class will be serialized to
Yields the Proto version that this class will be serialized to
- Definition Classes
- HasProtocolVersionedWrapper
- def representativeProtocolVersion: RepresentativeProtocolVersion[SignedContent[ProtocolVersionedMemoizedEvidence]]
We use com.digitalasset.canton.version.ProtocolVersion.v3 here because only v0 is defined for SignedContent.
We use com.digitalasset.canton.version.ProtocolVersion.v3 here because only v0 is defined for SignedContent. This can be revisited when this wrapper will evolve.
- Definition Classes
- SignedContent → HasProtocolVersionedWrapper → HasRepresentativeProtocolVersion
- val signature: Signature
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timestampOfSigningKey: Option[CantonTimestamp]
- def toByteArray: Array[Byte]
Yields a byte array representation of the corresponding
UntypedVersionedMessage
wrapper of this instance.Yields a byte array representation of the corresponding
UntypedVersionedMessage
wrapper of this instance.- Definition Classes
- HasProtocolVersionedWrapper
- def toByteString: ByteString
Yields a byte string representation of the corresponding
UntypedVersionedMessage
wrapper of this instance.Yields a byte string representation of the corresponding
UntypedVersionedMessage
wrapper of this instance.- Definition Classes
- HasProtocolVersionedWrapper
- def toProtoV0: protocol.v0.SignedContent
- def toProtoVersioned: VersionedMessage[SignedContent[ProtocolVersionedMemoizedEvidence]]
Yields the proto representation of the class inside an
UntypedVersionedMessage
wrapper.Yields the proto representation of the class inside an
UntypedVersionedMessage
wrapper.Subclasses should make this method public by default, as this supports composing proto serializations. Keep it protected, if there are good reasons for it (e.g. com.digitalasset.canton.serialization.ProtocolVersionedMemoizedEvidence).
Be aware that if calling on a class that defines a LegacyProtoConverter, this method will still return a VersionedMessage. If the current protocol version maps to the legacy converter, deserialization will then fail (as it will try to deserialize to the raw protobuf instead of the VersionedMessage wrapper this was serialized to. Prefer using toByteString which handles this use case correctly.
- Definition Classes
- HasProtocolVersionedWrapper
- def traverse[F[_], B <: ProtocolVersionedMemoizedEvidence](f: (A) => F[B])(implicit F: Functor[F]): F[SignedContent[B]]
- Annotations
- @SuppressWarnings()
- def verifySignature(snapshot: SyncCryptoApi, member: Member, purpose: HashPurpose): EitherT[Future, SignatureCheckError, Unit]
- 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])
- def writeToFile(outputFile: String): Unit
- Definition Classes
- HasProtocolVersionedWrapper