HashAttachmentConstraint - corda

corda / net.corda.core.contracts / HashAttachmentConstraint

# HashAttachmentConstraint

`data class HashAttachmentConstraint : AttachmentConstraint`

An AttachmentConstraint that verifies by hash. The state protected by this constraint can only be used in a transaction created with that version of the jar. And a receiving node will only accept it if a cordapp with that hash has (is) been deployed on the node.

### Constructors

#### <init> | An AttachmentConstraint that verifies by hash. The state protected by this constraint can only be used in a transaction created with that version of the jar. And a receiving node will only accept it if a cordapp with that hash has (is) been deployed on the node. `HashAttachmentConstraint(attachmentId: SecureHash)`

### Properties

#### attachmentId | `val attachmentId: SecureHash`

### Functions

#### isSatisfiedBy | Returns whether the given contract attachment can be used with the ContractState associated with this constraint object. `fun isSatisfiedBy(attachment: Attachment): Boolean`

### Companion Object Properties

#### disableHashConstraints | `val disableHashConstraints: Boolean`