corda / net.corda.core.contracts / ContractAttachment

ContractAttachment

class ContractAttachment : Attachment

An Attachment which represents a contract JAR.

Constructors

<init>

ContractAttachment(attachment: Attachment, contract: ContractClassName, additionalContracts: Set<ContractClassName> = emptySet(), uploader: String? = null)

Properties

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

Functions

toString

fun toString(): String

Companion Object Functions

create

fun create(attachment: Attachment, contract: ContractClassName, additionalContracts: Set<ContractClassName> = emptySet(), uploader: String? = null, signerKeys: List<PublicKey> = emptyList(), version: Int = DEFAULT_CORDAPP_VERSION): ContractAttachment