Automatic Placeholder Constraint
This AttachmentConstraint is a convenience class that acts as a placeholder and will be automatically resolved by the platform when set on an output state. It is the default constraint of all output states.
The resolution occurs in TransactionBuilder.toWireTransaction and is based on the input states and the attachments. If the Contract was not annotated with NoConstraintPropagation, then the platform will ensure the correct constraint propagation.
Functions
This method will be used in conjunction with NoConstraintPropagation. It is run during transaction verification when the contract is not annotated with NoConstraintPropagation. When constraints propagation is enabled, constraints set on output states need to follow certain rules with regards to constraints of input states.
Returns whether the given contract attachment can be used with the ContractState associated with this constraint object.