The smart contract is a new way to formalize an online business relationship. The basic idea of it is that many kinds of contractual clauses such as collateral, bonding etc, can be directly embedded in an electronic contract for dealers mutually, and executed under a mathematically trustworthy protocol in the absence of a third trusted part.The smart contract is a new way to formalize an on