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

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(): Logger

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