com.r3corda.core.testing / TestLedgerDSLInterpreter / attachment

attachment

fun attachment(attachment: InputStream): SecureHash
Overrides LedgerDSLInterpreter.attachment

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.