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>

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

WithKey(by: PublicKey, bytes: ByteArray)

Properties

by

val by: PublicKey

Functions

isValid

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.

fun isValid(content: ByteArray): Boolean

verify

Utility to simplify the act of verifying a signature.

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

withoutKey

fun withoutKey(): DigitalSignature