class ContractAttachment : Attachment
An Attachment which represents a contract JAR.
<init> |
ContractAttachment(attachment: Attachment, contract: ContractClassName, additionalContracts: Set<ContractClassName> = emptySet(), uploader: String? = null) |
additionalContracts |
Additional contract names contained within the JAR. val additionalContracts: Set<ContractClassName> |
allContracts |
val allContracts: Set<ContractClassName> |
attachment |
The attachment representing the contract JAR val attachment: Attachment |
contract |
The contract name contained within the JAR. A Contract attachment has to contain at least 1 contract. val contract: ContractClassName |
isSigned |
val isSigned: Boolean |
signerKeys |
The keys that have correctly signed the whole attachment. Can be empty, for example non-contract attachments won't be necessarily be signed. val signerKeys: List<PublicKey> |
uploader |
val uploader: String? |
version |
val version: Int |
toString |
fun toString(): String |
create |
fun create(attachment: Attachment, contract: ContractClassName, additionalContracts: Set<ContractClassName> = emptySet(), uploader: String? = null, signerKeys: List<PublicKey> = emptyList(), version: Int = DEFAULT_CORDAPP_VERSION): ContractAttachment |