public class HashAttachmentConstraint implements AttachmentConstraint
An interface 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.
interface AttachmentConstraint
public static net.corda.core.contracts.HashAttachmentConstraint.Companion Companion
public HashAttachmentConstraint(@NotNull SecureHash attachmentId)
An interface 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.
interface AttachmentConstraint
public boolean isSatisfiedBy(@NotNull Attachment attachment)
Returns whether the given contract attachment can be used with the interface ContractState
associated with this constraint object.
interface ContractState
@NotNull public SecureHash getAttachmentId()
@NotNull public SecureHash component1()
@NotNull public HashAttachmentConstraint copy(@NotNull SecureHash attachmentId)
An interface 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.
interface AttachmentConstraint
@NotNull public java.lang.String toString()
An interface 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.
interface AttachmentConstraint
public int hashCode()
An interface 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.
interface AttachmentConstraint
public boolean equals(@Nullable java.lang.Object p)
An interface 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.
interface AttachmentConstraint