#### Contract
合約確認了交易間的有效性。
合約定義:
interface Contract
{
@Throws
(IllegalArgumentException::class)
fun verify(tx: TransactionForContract): Unit
val legalContractReference: SecureHash
}
class SimplestContract
(override val legalContractReference = SecureHash.sha256(“Useless!”)):Contract
{
override fun
verify(tx:TransactionForContract)
{
//...
}
}