verify

abstract fun verify(ledgerTransaction: ConsensualLedgerTransaction)

An override of this function needs to be provided to:

  • verify the state's well-formedness

  • verify compatibility with the other states of the encapsulating transaction

  • check required signing keys

  • check the transaction's timestamp.

TODO(make services injectable (crypto, etc... CORE-5995)

Parameters

ledgerTransaction

encapsulating transaction

Throws

net.corda.v5.ledger.common.transaction.TransactionVerificationException

if the verification failed.