NullPublicKey

Properties

Link copied to clipboard
Link copied to clipboard

Return a Set of the contained leaf keys if this is a CompositeKey. Otherwise, return a Set with a single element (this PublicKey). Note that leaf keys cannot be of type CompositeKey.

Functions

Link copied to clipboard
open operator override fun compareTo(other: PublicKey): Int
Link copied to clipboard

Checks whether any of the given keys matches a leaf on the CompositeKey tree or a single PublicKey.

Link copied to clipboard
open override fun getAlgorithm(): String
Link copied to clipboard
open override fun getEncoded(): ByteArray
Link copied to clipboard
open override fun getFormat(): String
Link copied to clipboard

Return true if otherKey fulfils the requirements of this PublicKey.

Return true if otherKeys fulfil the requirements of this PublicKey.

Link copied to clipboard

Utility to simplify the act of verifying a signature. In comparison to verify if the key and signature do not match it returns false rather than throwing an exception. Normally you should use the function which throws, as it avoids the risk of failing to test the result, but this is for uses such as java.security.Signature.verify implementations.

Link copied to clipboard

Return the Base58 representation of the serialised public key.

Link copied to clipboard

Return the bytes of the SHA-256 output for this public key.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Render a public key to its hash (in Base58) of its serialised form using the DL prefix.

Link copied to clipboard
fun PublicKey.verify(signatureData: ByteArray, clearData: ByteArray): Boolean

Helper function to verify a signature.

Utility to simplify the act of verifying a signature.