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
Modifier and Type | Class and Description |
---|---|
static class |
HashAttachmentConstraint.Companion |
Modifier and Type | Field and Description |
---|---|
static HashAttachmentConstraint.Companion |
Companion |
Constructor and Description |
---|
HashAttachmentConstraint(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. |
Modifier and Type | Method and Description |
---|---|
SecureHash |
component1() |
HashAttachmentConstraint |
copy(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. |
boolean |
equals(java.lang.Object p) |
SecureHash |
getAttachmentId() |
int |
hashCode() |
boolean |
isSatisfiedBy(Attachment attachment)
Returns whether the given contract attachment can be used with the
interface ContractState associated with this constraint object. |
java.lang.String |
toString() |
isSatisfiedBy
public static HashAttachmentConstraint.Companion Companion
public HashAttachmentConstraint(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(Attachment attachment)
Returns whether the given contract attachment can be used with the interface ContractState
associated with this constraint object.
interface ContractState
public SecureHash getAttachmentId()
public SecureHash component1()
public HashAttachmentConstraint copy(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 java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)