Packages

object EncryptedViewMessage extends VersioningCompanion[EncryptedViewMessage[ViewType]] with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EncryptedViewMessage
  2. Serializable
  3. VersioningCompanion2
  4. BaseVersioningCompanion
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Codec = ProtoCodec[EncryptedViewMessage[ViewType], Unit, EncryptedViewMessage[ViewType], EncryptedViewMessage.this.type, Unit]
    Definition Classes
    BaseVersioningCompanion
  2. type Deserializer = (Unit, OriginalByteString, DataByteString) => ParsingResult[EncryptedViewMessage[ViewType]]
    Definition Classes
    BaseVersioningCompanion
  3. type Invariants = Seq[Invariant[EncryptedViewMessage[ViewType], EncryptedViewMessage.this.type]]
    Attributes
    protected
    Definition Classes
    BaseVersioningCompanion
  4. type ThisRepresentativeProtocolVersion = RepresentativeProtocolVersion[EncryptedViewMessage.this.type]
    Attributes
    protected
    Definition Classes
    BaseVersioningCompanion
  5. type VersioningTable = SupportedProtoVersions[EncryptedViewMessage[ViewType], Unit, EncryptedViewMessage[ViewType], EncryptedViewMessage.this.type, Unit]
    Definition Classes
    BaseVersioningCompanion

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[VT <: ViewType](submittingParticipantSignature: Option[Signature], viewHash: ViewHash, sessionKeys: NonEmpty[Seq[AsymmetricEncrypted[SecureRandomness]]], encryptedView: EncryptedView[VT], synchronizerId: SynchronizerId, viewEncryptionScheme: SymmetricKeyScheme, protocolVersion: ProtocolVersion): EncryptedViewMessage[VT]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def computeRandomnessLength(pureCrypto: CryptoPureApi): Int
  8. def converterFor(protocolVersion: RepresentativeProtocolVersion[EncryptedViewMessage.this.type]): ParsingResult[Codec]
    Definition Classes
    BaseVersioningCompanion
  9. def decryptFor[VT <: ViewType](staticSynchronizerParameters: StaticSynchronizerParameters, snapshot: SynchronizerSnapshotSyncCryptoApi, sessionKeyStore: ConfirmationRequestSessionKeyStore, encrypted: EncryptedViewMessage[VT], participantId: ParticipantId, optViewRandomness: Option[SecureRandomness] = None)(deserialize: (ByteString) => Either[DeserializationError, EncryptedViewMessage.decryptFor.VT.View])(implicit ec: ExecutionContext, tc: TraceContext): EitherT[FutureUnlessShutdown, EncryptedViewMessageError, EncryptedViewMessage.decryptFor.VT.View]
  10. def decryptRandomness[VT <: ViewType](allowedEncryptionSpecs: RequiredEncryptionSpecs, snapshot: SynchronizerSnapshotSyncCryptoApi, sessionKeyStore: ConfirmationRequestSessionKeyStore, encrypted: EncryptedViewMessage[VT], participantId: ParticipantId)(implicit ec: ExecutionContext, tc: TraceContext): EitherT[FutureUnlessShutdown, EncryptedViewMessageError, SecureRandomness]
  11. implicit val encryptedViewMessageCast: ProtocolMessageContentCast[EncryptedViewMessage[ViewType]]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def fromByteString(expectedProtocolVersion: ProtocolVersionValidation, bytes: OriginalByteString)(implicit ev: =:=[Unit, Unit]): ParsingResult[EncryptedViewMessage[ViewType]]

    Alias of fromByteString that can be used when there is no context.

    Alias of fromByteString that can be used when there is no context.

    Definition Classes
    BaseVersioningCompanion
  15. def fromByteString(expectedProtocolVersion: ProtocolVersion, bytes: OriginalByteString)(implicit ev: =:=[Unit, Unit]): ParsingResult[EncryptedViewMessage[ViewType]]

    Alias of fromByteString that can be used when there is no context.

    Alias of fromByteString that can be used when there is no context.

    Definition Classes
    BaseVersioningCompanion
  16. def fromByteString(expectedProtocolVersion: ProtocolVersion, context: Unit)(bytes: OriginalByteString): ParsingResult[EncryptedViewMessage[ViewType]]
    Definition Classes
    BaseVersioningCompanion
  17. def fromByteString(expectedProtocolVersion: ProtocolVersionValidation, context: Unit, bytes: OriginalByteString): ParsingResult[EncryptedViewMessage[ViewType]]

    Main deserialization method to parse a byte string

    Main deserialization method to parse a byte string

    expectedProtocolVersion

    Protocol version used by the synchronizer

    context

    Context for the deserialization (() if there is no context)

    bytes

    Byte string to be deserialized

    returns

    Deserialized value class (as a Right) or a ProtoDeserializationError (as a left) Variants of this method (e.g., when Context=unit) are provided below for convenience.

    Definition Classes
    BaseVersioningCompanion
  18. def fromByteStringPV(expectedProtocolVersion: ProtocolVersion, bytes: OriginalByteString)(implicit ev: =:=[ProtocolVersion, Unit]): ParsingResult[EncryptedViewMessage[ViewType]]

    Alias of fromByteString that can be used when the Context is a com.digitalasset.canton.version.ProtocolVersion.

    Alias of fromByteString that can be used when the Context is a com.digitalasset.canton.version.ProtocolVersion.

    Definition Classes
    BaseVersioningCompanion
  19. def fromByteStringPVV(expectedProtocolVersion: ProtocolVersionValidation, bytes: OriginalByteString)(implicit ev: =:=[ProtocolVersionValidation, Unit]): ParsingResult[EncryptedViewMessage[ViewType]]

    Alias of fromByteString that can be used when the Context is a com.digitalasset.canton.version.ProtocolVersionValidation.

    Alias of fromByteString that can be used when the Context is a com.digitalasset.canton.version.ProtocolVersionValidation.

    Definition Classes
    BaseVersioningCompanion
  20. def fromProto(encryptedViewMessageP: v30.EncryptedViewMessage): ParsingResult[EncryptedViewMessage[ViewType]]
  21. def fromTrustedByteArray(bytes: Array[Byte])(implicit ev: =:=[Unit, Unit]): ParsingResult[EncryptedViewMessage[ViewType]]
    Definition Classes
    BaseVersioningCompanion
  22. def fromTrustedByteArray(context: Unit, bytes: Array[Byte]): ParsingResult[EncryptedViewMessage[ViewType]]

    Deserializes the given bytes without validation.

    Deserializes the given bytes without validation.

    Unsafe! Do NOT use this method unless you can justify that the given bytes originate from a trusted source. For example, this should be the case for deserialization of data that originates from a database.

    bytes

    trusted bytes with an embedded proto version

    Definition Classes
    BaseVersioningCompanion
  23. def fromTrustedByteString(bytes: OriginalByteString)(implicit ev: =:=[Unit, Unit]): ParsingResult[EncryptedViewMessage[ViewType]]

    Alias of fromTrustedByteString that can be used when there is no context.

    Alias of fromTrustedByteString that can be used when there is no context.

    Definition Classes
    BaseVersioningCompanion
  24. def fromTrustedByteString(context: Unit)(bytes: OriginalByteString): ParsingResult[EncryptedViewMessage[ViewType]]

    Deserializes the given bytes without validation.

    Deserializes the given bytes without validation.

    Unsafe! Do NOT use this method unless you can justify that the given bytes originate from a trusted source. For example, this should be the case for deserialization of data that originates from a database.

    bytes

    trusted bytes with an embedded proto version

    Definition Classes
    BaseVersioningCompanion
  25. def fromTrustedByteStringPVV(bytes: OriginalByteString)(implicit ev: =:=[ProtocolVersionValidation, Unit]): ParsingResult[EncryptedViewMessage[ViewType]]

    Since dependency on the ProtocolVersionValidation is encoded in the context, one still has to provide ProtocolVersionValidation.NoValidation even when calling fromTrustedByteString, which is counterintuitive.

    Since dependency on the ProtocolVersionValidation is encoded in the context, one still has to provide ProtocolVersionValidation.NoValidation even when calling fromTrustedByteString, which is counterintuitive. This method allows a simpler call if the Context is a com.digitalasset.canton.version.ProtocolVersionValidation

    Definition Classes
    BaseVersioningCompanion
  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  27. implicit def hasVersionedWrapperGetResult(implicit getResultByteArray: GetResult[Array[Byte]]): GetResult[EncryptedViewMessage[ViewType]]
    Definition Classes
    VersioningCompanion2
  28. implicit def hasVersionedWrapperGetResultO(implicit getResultByteArray: GetResult[Option[Array[Byte]]]): GetResult[Option[EncryptedViewMessage[ViewType]]]
    Definition Classes
    VersioningCompanion2
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  30. def invariants: Seq[Invariant[EncryptedViewMessage[ViewType], EncryptedViewMessage.this.type]]
    Definition Classes
    BaseVersioningCompanion
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def name: String

    The name of the class as used for pretty-printing and error reporting

    The name of the class as used for pretty-printing and error reporting

    Definition Classes
    EncryptedViewMessageBaseVersioningCompanion
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  36. def parseDelimitedFromTrusted(input: InputStream)(implicit ev: =:=[Unit, Unit]): Option[ParsingResult[EncryptedViewMessage[ViewType]]]
    Definition Classes
    BaseVersioningCompanion
  37. def parseDelimitedFromTrusted(input: InputStream, context: Unit): Option[ParsingResult[EncryptedViewMessage[ViewType]]]

    Deserializes a message using a delimiter (the message length) from the given input stream.

    Deserializes a message using a delimiter (the message length) from the given input stream.

    Unsafe! No deserialization validation is performed.

    Do NOT use this method unless you can justify that the given bytes originate from a trusted source.

    This method works in conjunction with com.digitalasset.canton.version.HasProtocolVersionedWrapper.writeDelimitedTo which should have been used to serialize the message. It is useful for deserializing multiple messages from a single input stream through repeated invocations.

    Deserialization is only supported for com.digitalasset.canton.version.VersionedMessage.

    input

    the source from which a message is deserialized

    returns

    an Option that is None when there are no messages left anymore, otherwise it wraps an Either where left represents a deserialization error (exception) and right represents the successfully deserialized message

    Definition Classes
    BaseVersioningCompanion
  38. def protoVersionFor(protocolVersion: ProtocolVersion): ProtoVersion

    Return the Proto version corresponding to the protocol version

    Return the Proto version corresponding to the protocol version

    Definition Classes
    BaseVersioningCompanion
  39. def protoVersionFor(protocolVersion: RepresentativeProtocolVersion[EncryptedViewMessage.this.type]): ProtoVersion

    Return the Proto version corresponding to the representative protocol version

    Return the Proto version corresponding to the representative protocol version

    Definition Classes
    BaseVersioningCompanion
  40. def protocolVersionRepresentativeFor(protoVersion: ProtoVersion): ParsingResult[RepresentativeProtocolVersion[EncryptedViewMessage.this.type]]
    Definition Classes
    BaseVersioningCompanion
  41. def protocolVersionRepresentativeFor(protocolVersion: ProtocolVersion): RepresentativeProtocolVersion[EncryptedViewMessage.this.type]
    Definition Classes
    BaseVersioningCompanion
  42. def readFromTrustedFile(inputFile: String)(implicit ev: =:=[Unit, Unit]): Either[String, EncryptedViewMessage[ViewType]]
    Definition Classes
    BaseVersioningCompanion
  43. def readFromTrustedFile(context: Unit, inputFile: String): Either[String, EncryptedViewMessage[ViewType]]

    Deserializes the data from the given file without validation.

    Deserializes the data from the given file without validation.

    Unsafe! Do NOT use this method unless you can justify that the data originates from a trusted source.

    Definition Classes
    BaseVersioningCompanion
  44. def readFromTrustedFilePVV(inputFile: String)(implicit ev: =:=[ProtocolVersionValidation, Unit]): Either[String, EncryptedViewMessage[ViewType]]
    Definition Classes
    BaseVersioningCompanion
  45. def supportedProtoVersion[Proto <: GeneratedMessage](p: GeneratedMessageCompanion[Proto])(fromProto: (Proto) => ParsingResult[EncryptedViewMessage[ViewType]]): Deserializer
    Attributes
    protected
    Definition Classes
    VersioningCompanion2
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. def tryReadFromTrustedFile(inputFile: String)(implicit ev: =:=[Unit, Unit]): EncryptedViewMessage[ViewType]
    Definition Classes
    BaseVersioningCompanion
  49. def tryReadFromTrustedFile(context: Unit, inputFile: String): EncryptedViewMessage[ViewType]
    Definition Classes
    BaseVersioningCompanion
  50. def validateInstance(instance: EncryptedViewMessage[ViewType], representativeProtocolVersion: ThisRepresentativeProtocolVersion): Either[String, Unit]

    Will check that default value rules defined in invariants hold.

    Will check that default value rules defined in invariants hold.

    Definition Classes
    BaseVersioningCompanion
  51. val versioningTable: VersioningTable

    Proto versions that are supported by fromByteString See the helper supportedProtoVersion below to define a Parser.

    Proto versions that are supported by fromByteString See the helper supportedProtoVersion below to define a Parser.

    Definition Classes
    EncryptedViewMessageBaseVersioningCompanion
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. object VersioningTable
    Definition Classes
    BaseVersioningCompanion

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Ungrouped