.. _sphx_glr_api_gallery_vm_contracts: Contracts and verification -------------------------- A contract enforced by code, and checking code before running it. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /api/gallery/vm/contracts/images/thumb/sphx_glr_plot_01_vending_machine_thumb.png :alt: :doc:`/api/gallery/vm/contracts/plot_01_vending_machine` .. raw:: html
Smart contracts: the vending machine (Szabo 1994)
.. raw:: html
.. only:: html .. image:: /api/gallery/vm/contracts/images/thumb/sphx_glr_plot_02_bytecode_verification_thumb.png :alt: :doc:`/api/gallery/vm/contracts/plot_02_bytecode_verification` .. raw:: html
Bytecode verification: check before you run (Gosling 1995)
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /api/gallery/vm/contracts/plot_01_vending_machine /api/gallery/vm/contracts/plot_02_bytecode_verification