corda / net.corda.core.contracts / WhitelistedByZoneAttachmentConstraint

WhitelistedByZoneAttachmentConstraint

object WhitelistedByZoneAttachmentConstraint : AttachmentConstraint

An AttachmentConstraint that verifies that the hash of the attachment is in the network parameters whitelist. See: net.corda.core.node.NetworkParameters.whitelistedContractImplementations It allows for centralized control over the cordapps that can be used.

Functions

isSatisfiedBy

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

fun isSatisfiedBy(attachment: Attachment): Boolean