Packages

package version

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

Type Members

  1. sealed trait CantonVersion extends Ordered[CantonVersion] with PrettyPrinting

    Trait that represents how a version in Canton is modelled.

  2. final case class DomainProtocolVersion(version: ProtocolVersion) extends Product with Serializable

    Wrapper around a ProtocolVersion so we can verify during configuration loading that domain operators only configure a ProtocolVersion which is supported by the corresponding sequencer release.

  3. final case class EthereumContractVersion(major: Int, minor: Int, patch: Int, optSuffix: Option[String] = None) extends Product with Serializable

    This class represents a revision of the Sequencer.sol contract.

  4. sealed trait HandshakeError extends AnyRef

    Trait for errors that are returned to clients when handshake fails.

  5. type HasMemoizedProtocolVersionedWithContextCompanion[ValueClass <: HasRepresentativeProtocolVersion, Context] = HasMemoizedProtocolVersionedWithContextCompanion2[ValueClass, ValueClass, Context]
  6. trait HasMemoizedProtocolVersionedWithContextCompanion2[ValueClass <: HasRepresentativeProtocolVersion, DeserializedValueClass, Context] extends HasProtocolVersionedWrapperCompanion[ValueClass, DeserializedValueClass]

    Trait for companion objects of serializable classes with memoization and a (de)serialization context.

    Trait for companion objects of serializable classes with memoization and a (de)serialization context. Use this class if deserialization produces a different type than where serialization starts. For example, if a container can serialize its elements, but the container's deserializer does not deserialize the elements and instead leaves them as Bytestring.

    Use HasMemoizedProtocolVersionedWithContextCompanion if the type distinction between serialization and deseserialization is not needed.

  7. type HasMemoizedProtocolVersionedWrapperCompanion[ValueClass <: HasRepresentativeProtocolVersion] = HasMemoizedProtocolVersionedWrapperCompanion2[ValueClass, ValueClass]
  8. trait HasMemoizedProtocolVersionedWrapperCompanion2[ValueClass <: HasRepresentativeProtocolVersion, DeserializedValueClass] extends HasProtocolVersionedWrapperWithoutContextCompanion[ValueClass, DeserializedValueClass]

    Trait for companion objects of serializable classes with memoization.

    Trait for companion objects of serializable classes with memoization. Use this class if deserialization produces a different type than where serialization starts. For example, if a container can serialize its elements, but the container's deserializer does not deserialize the elements and instead leaves them as Bytestring.

    Use HasMemoizedProtocolVersionedWrapperCompanion if the type distinction between serialization and deseserialization is not needed.

  9. type HasProtocolVersionedCompanion[ValueClass <: HasRepresentativeProtocolVersion] = HasProtocolVersionedCompanion2[ValueClass, ValueClass]
  10. trait HasProtocolVersionedCompanion2[ValueClass <: HasRepresentativeProtocolVersion, DeserializedValueClass] extends HasProtocolVersionedWrapperWithoutContextCompanion[ValueClass, DeserializedValueClass]

    Trait for companion objects of serializable classes without memoization.

    Trait for companion objects of serializable classes without memoization. Use this class if deserialization produces a different type than where serialization starts. For example, if a container can serialize its elements, but the container's deserializer does not deserialize the elements and instead leaves them as Bytestring.

    Use HasProtocolVersionedCompanion if the type distinction between serialization and deseserialization is not needed.

  11. trait HasProtocolVersionedWithContextCompanion[ValueClass <: HasRepresentativeProtocolVersion, Context] extends HasProtocolVersionedWrapperCompanion[ValueClass, ValueClass]
  12. trait HasProtocolVersionedWrapper[ValueClass <: HasRepresentativeProtocolVersion] extends HasRepresentativeProtocolVersion

    Trait for classes that can be serialized by using ProtoBuf.

    Trait for classes that can be serialized by using ProtoBuf. See "CONTRIBUTING.md" for our guidelines on serialization.

    This wrapper is to be used when every instance can be tied to a single protocol version. Consequently, some attributes of the class may depend on the protocol version (e.g., the signature). The protocol version is then bundled with the instance and does not need to be passed to the toProtoVersioned, toByteString and getCryptographicEvidence methods.

    The underlying ProtoClass is com.digitalasset.canton.version.UntypedVersionedMessage but we often specify the typed alias com.digitalasset.canton.version.VersionedMessage instead.

  13. trait HasProtocolVersionedWrapperCompanion[ValueClass <: HasRepresentativeProtocolVersion, DeserializedValueClass] extends HasSupportedProtoVersions[ValueClass] with Serializable
  14. trait HasProtocolVersionedWrapperWithoutContextCompanion[ValueClass <: HasRepresentativeProtocolVersion, DeserializedValueClass] extends HasProtocolVersionedWrapperCompanion[ValueClass, DeserializedValueClass]
  15. trait HasRepresentativeProtocolVersion extends AnyRef
  16. trait HasSupportedProtoVersions[ValueClass] extends AnyRef

    This trait has the logic to store proto (de)serializers and retrieve them by protocol version.

  17. trait HasVersionedMessageCompanion[ValueClass] extends HasVersionedMessageCompanionCommon[ValueClass]

    Traits for the companion objects of classes that implement HasVersionedWrapper.

    Traits for the companion objects of classes that implement HasVersionedWrapper. Provide default methods.

  18. trait HasVersionedMessageCompanionCommon[ValueClass] extends AnyRef
  19. trait HasVersionedMessageCompanionDbHelpers[ValueClass <: HasVersionedWrapper[ValueClass]] extends AnyRef
  20. trait HasVersionedMessageWithContextCompanion[ValueClass, Ctx] extends HasVersionedMessageCompanionCommon[ValueClass]

    Traits for the companion objects of classes that implement HasVersionedWrapper.

    Traits for the companion objects of classes that implement HasVersionedWrapper. They provide default methods. Unlike HasVersionedMessageCompanion these traits allow to pass additional context to the conversion methods (see, e.g., com.digitalasset.canton.data.TransferInViewTree.fromProtoVersioned which takes a HashOps parameter).

  21. trait HasVersionedToByteString extends AnyRef

    Trait for classes that can be serialized to a com.google.protobuf.ByteString.

    Trait for classes that can be serialized to a com.google.protobuf.ByteString. Typical use cases of toByteString include:

    • saving data in the database in serialized form (e.g. as in SequencedEvent)
    • encrypting data (e.g. as in Encryption.scala) *

    In some exceptional cases, we also convert an object to a ByteString before including it in a Proto message (e.g. ViewCommonData or Envelope)

    Classes that use Protobuf for serialization should implement HasVersionedWrapper instead. See "CONTRIBUTING.md" for our guidelines on serialization.

  22. trait HasVersionedWrapper[ValueClass] extends HasVersionedToByteString

    Trait for classes that can be serialized by using ProtoBuf.

    Trait for classes that can be serialized by using ProtoBuf. See "CONTRIBUTING.md" for our guidelines on serialization.

    This wrapper is to be used if a single instance needs to be serialized to different proto versions.

    The underlying ProtoClass is com.digitalasset.canton.version.UntypedVersionedMessage but we often specify the typed alias com.digitalasset.canton.version.VersionedMessage instead.

  23. final case class MinProtocolError(server: ProtocolVersion, clientMinimumProtocolVersion: Option[ProtocolVersion], clientSupportsRequiredVersion: Boolean) extends HandshakeError with Product with Serializable
  24. final case class ParticipantProtocolVersion(version: ProtocolVersion) extends Product with Serializable

    Wrapper around a ProtocolVersion so we can verify during configuration loading that participant operators only configure a minimum ProtocolVersion in com.digitalasset.canton.participant.config.LocalParticipantConfig which is supported by the corresponding participant release.

  25. final case class ProtoVersion(v: Int) extends AnyVal with Product with Serializable
  26. sealed case class ProtocolVersion extends Ordered[ProtocolVersion] with PrettyPrinting with Product with Serializable

    A Canton protocol version is a snapshot of how the Canton protocols, that nodes use to communicate, function at a certain point in time (e.g., this ‘snapshot’ contains the information what exactly a SubmissionRequest to the sequencer looks like and how exactly a Sequencer handles a call of the SendAsync RPC).

    A Canton protocol version is a snapshot of how the Canton protocols, that nodes use to communicate, function at a certain point in time (e.g., this ‘snapshot’ contains the information what exactly a SubmissionRequest to the sequencer looks like and how exactly a Sequencer handles a call of the SendAsync RPC). It is supposed to capture everything that is involved in two different Canton nodes interacting with each other.

    The protocol version is important for ensuring we meet our compatibility guarantees such that we can

    • update systems running older Canton versions
    • migrate data from older versions in the database
    • communicate with Canton nodes of different releases

    Two Canton nodes can interact if they can speak the same protocol version.

    For more details, please refer to the versioning documentation in the user manual.

    How to add a new protocol version N:

    lazy val v<N>: ProtocolVersionWithStatus[Unstable] = ProtocolVersion.unstable(<N>)

    How to release a protocol version N:

  27. trait ProtocolVersionedCompanionDbHelpers[ValueClass <: HasProtocolVersionedWrapper[ValueClass]] extends AnyRef
  28. final case class ReleaseProtocolVersion(v: ProtocolVersion) extends AnyVal with Product with Serializable
  29. final case class ReleaseVersion(major: Int, minor: Int, patch: Int, optSuffix: Option[String] = None) extends CantonVersion with Product with Serializable

    This class represent a release version.

    This class represent a release version. Please refer to the versioning documentation in the user manual for details.

  30. sealed abstract case class RepresentativeProtocolVersion[ValueCompanion] extends PrettyPrinting with Product with Serializable

    See com.digitalasset.canton.version.HasProtocolVersionedWrapper.representativeProtocolVersion for more context

  31. trait StableProtoVersion extends Stable with Unstable

    Marker trait for Protobuf messages generated by scalapb that are used in some stable protocol versions

    Marker trait for Protobuf messages generated by scalapb that are used in some stable protocol versions

    Implements both com.digitalasset.canton.version.ProtocolVersion.Stable and com.digitalasset.canton.version.ProtocolVersion.Unstable means that StableProtoVersion messages can be used in stable and unstable protocol versions.

  32. trait StorageProtoVersion extends AnyRef

    Marker trait for Protobuf messages generated by scalapb that are used only to persist data in node storage.

    Marker trait for Protobuf messages generated by scalapb that are used only to persist data in node storage. These messages are never exchanged as part of a protocol.

  33. trait UnstableProtoVersion extends Unstable

    Marker trait for Protobuf messages generated by scalapb that are used only in unstable protocol versions

  34. final case class UntypedVersionedMessage(wrapper: Wrapper, version: Int) extends GeneratedMessage with Updatable[UntypedVersionedMessage] with Product with Serializable

    UntypedVersionedMessage is the generic wrapper for versioned messages The version is included in the version integer and the serialized message is contained in data.

    UntypedVersionedMessage is the generic wrapper for versioned messages The version is included in the version integer and the serialized message is contained in data.

    Internally, we use the typed alias VersionedMessage[ValueClass] to avoid the risk of confusion between different proto versioned messaged (see, e.g., the return type of the HasVersionedWrapper.toProtoVersioned method).

    The oneof prevents the serialized message to be empty if data is empty and version is 0 (the default value for an integer). Such an empty message cannot be deserialized using previous version of our parsing method.

    Annotations
    @SerialVersionUID()
  35. final case class VersionNotSupportedError(server: ProtocolVersion, clientSupportedVersions: Seq[ProtocolVersion]) extends HandshakeError with Product with Serializable
  36. type VersionedMessage[+M] = version.VersionedMessageImpl.VersionedMessage[M]
  37. sealed abstract class VersionedMessageImpl extends AnyRef

Inherited from AnyRef

Inherited from Any

Ungrouped