trait PublicKey extends CryptoKeyPairKey
- Alphabetic
- By Inheritance
- PublicKey
- CryptoKeyPairKey
- CryptoKey
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type K <: PublicKey
- Definition Classes
- PublicKey → CryptoKeyPairKey
Abstract Value Members
- abstract def canEqual(that: Any): Boolean
- Definition Classes
- Equals
- abstract def dataForFingerprintO: Option[ByteString]
The data used to compute the key fingerprint.
The data used to compute the key fingerprint.
This should normally be the same as the key contents (in which case it is
None
), but can be different when we need to support backward compatibility. For example, Ed25519 keys were originally stored raw; when changing the format to X.509, the key content became the DER-encoded SubjectPublicKeyInfo. To keep the same fingerprint, this field retains the raw key.- Attributes
- protected
- abstract def format: CryptoKeyFormat
- Definition Classes
- CryptoKey
- abstract def key: ByteString
- abstract def migrated: Boolean
Indicates whether the key was migrated from an old format during creation.
Indicates whether the key was migrated from an old format during creation.
The crypto stores read and check the keys during initialization and use this flag to determine whether they have been migrated. If that is the case they are written back in the new format. Keys read afterward from the store have therefore this flag unset.
Keys that are obtained by other means, such as via a topology transaction, can however have this flag set if they were originally stored in a legacy format.
- Definition Classes
- CryptoKeyPairKey
- abstract def productArity: Int
- Definition Classes
- Product
- abstract def productElement(n: Int): Any
- Definition Classes
- Product
- abstract def purpose: KeyPurpose
- abstract def toByteString(version: ProtocolVersion): ByteString
- abstract def toProtoPublicKeyKeyV30: Key
- Attributes
- protected
Concrete 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 asSigningKey: Option[SigningPublicKey]
- 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 fingerprint: Fingerprint
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- lazy val id: Fingerprint
- Definition Classes
- PublicKey → CryptoKeyPairKey
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPublicKey: Boolean
- Definition Classes
- PublicKey → CryptoKeyPairKey
- def isSigning: Boolean
- 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 productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toProtoPublicKeyV30: v30.PublicKey
With the v30.PublicKey message we model the class hierarchy of public keys in protobuf.
With the v30.PublicKey message we model the class hierarchy of public keys in protobuf. Each child class that implements this trait can be serialized with
toProto
to their corresponding protobuf message. With the following method, it can be serialized to this trait's protobuf message. - def toString(): String
- Definition Classes
- AnyRef → Any
- 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])