object SigningPrivateKey extends HasVersionedMessageCompanion[SigningPrivateKey] with Serializable
- Alphabetic
- By Inheritance
- SigningPrivateKey
- Serializable
- HasVersionedMessageCompanion
- HasVersionedMessageCompanionCommon
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Deserializer = (ByteString) => ParsingResult[SigningPrivateKey]
- Definition Classes
- HasVersionedMessageCompanion → HasVersionedMessageCompanionCommon
- type Serializer = (SigningPrivateKey) => ByteString
- Definition Classes
- HasVersionedMessageCompanionCommon
- case class ProtoCodec(fromInclusive: ProtocolVersion, deserializer: Deserializer, serializer: (ValueClass) => GeneratedMessage) extends Product with Serializable
- Definition Classes
- HasVersionedMessageCompanionCommon
- case class SupportedProtoVersions extends Product with Serializable
- Definition Classes
- HasVersionedMessageCompanionCommon
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]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromProtoV30(privateKeyP: v30.SigningPrivateKey): ParsingResult[SigningPrivateKey]
- Annotations
- @nowarn()
- def fromProtoVersioned(proto: VersionedMessage[SigningPrivateKey]): ParsingResult[SigningPrivateKey]
- Definition Classes
- HasVersionedMessageCompanion
- def fromTrustedByteArray(bytes: Array[Byte]): ParsingResult[SigningPrivateKey]
- Definition Classes
- HasVersionedMessageCompanion
- def fromTrustedByteString(bytes: ByteString): ParsingResult[SigningPrivateKey]
The embedded version is not validated
The embedded version is not validated
- Definition Classes
- HasVersionedMessageCompanion
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- implicit def hasVersionedWrapperGetResult(implicit getResultByteArray: GetResult[Array[Byte]]): GetResult[SigningPrivateKey]
- Definition Classes
- HasVersionedMessageCompanion
- implicit def hasVersionedWrapperGetResultO(implicit getResultByteArrayO: GetResult[Option[Array[Byte]]]): GetResult[Option[SigningPrivateKey]]
- Definition Classes
- HasVersionedMessageCompanion
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- SigningPrivateKey → HasVersionedMessageCompanionCommon
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def parseDelimitedFromTrusted(input: InputStream): Option[ParsingResult[SigningPrivateKey]]
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.HasVersionedWrapper.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.
- 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
- HasVersionedMessageCompanion
- def readFromTrustedFile(inputFile: String): Either[String, SigningPrivateKey]
- Definition Classes
- HasVersionedMessageCompanion
- def supportedProtoVersion[Proto <: GeneratedMessage](p: GeneratedMessageCompanion[Proto])(fromProto: (Proto) => ParsingResult[SigningPrivateKey]): (ByteString) => ParsingResult[SigningPrivateKey]
- Attributes
- protected
- Definition Classes
- HasVersionedMessageCompanion
- val supportedProtoVersions: SupportedProtoVersions
Proto versions that are supported by
fromProtoVersioned
,fromByteString
,toProtoVersioned
andtoByteString
.Proto versions that are supported by
fromProtoVersioned
,fromByteString
,toProtoVersioned
andtoByteString
. See the helperssupportedProtoVersion
andsupportedProtoVersionMemoized
below to define aProtoCodec
.- Definition Classes
- SigningPrivateKey → HasVersionedMessageCompanionCommon
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryReadFromTrustedFile(inputFile: String): SigningPrivateKey
- Definition Classes
- HasVersionedMessageCompanion
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object SupportedProtoVersions extends Serializable
- Definition Classes
- HasVersionedMessageCompanionCommon