corda / net.corda.testing.dsl / TestLedgerDSLInterpreter / attachment

attachment

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.