com.r3corda.core.testing / LedgerDSLInterpreter / attachment

attachment

abstract fun attachment(attachment: InputStream): SecureHash

Adds an attachment to the ledger.

Parameters

attachment - The InputStream defining the contents of the attachment.

Return
The SecureHash that identifies the attachment, to be used in transactions.