corda / net.corda.core.contracts / SignatureAttachmentConstraint

SignatureAttachmentConstraint

data class SignatureAttachmentConstraint : AttachmentConstraint

An AttachmentConstraint that verifies that the attachment has signers that fulfil the provided PublicKey. See: Signature Constraints

Constructors

<init>

SignatureAttachmentConstraint(key: PublicKey)

An AttachmentConstraint that verifies that the attachment has signers that fulfil the provided PublicKey. See: Signature Constraints

Properties

key

val key: PublicKey

A PublicKey that must be fulfilled by the owning keys of the attachment's signing parties.

Functions

isSatisfiedBy

fun isSatisfiedBy(attachment: Attachment): Boolean

Returns whether the given contract attachment can be used with the ContractState associated with this constraint object.

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.