corda / net.corda.core.crypto / DigitalSignature / WithKey

WithKey

open class WithKey : DigitalSignature

A digital signature that identifies who the public key is owned by.

Constructors

<init>

WithKey(by: PublicKey, bytes: ByteArray)

A digital signature that identifies who the public key is owned by.

Properties

by

val by: PublicKey

Functions

isValid

fun isValid(content: ByteArray): Boolean

Utility to simplify the act of verifying a signature. In comparison to verify doesn't throw an exception, making it more suitable where a boolean is required, but normally you should use the function which throws, as it avoids the risk of failing to test the result.

verify

fun verify(content: ByteArray): Boolean
fun verify(content: OpaqueBytes): Boolean

Utility to simplify the act of verifying a signature.

withoutKey

fun withoutKey(): DigitalSignature