How to write smart contract protocol of digital currency
& quot; A smart contract is a set of promises defined in digital form, including the agreements on which the contract participants can execute these promises& quot;
let's explore the meaning of his definition in more detail
commitment
a set of commitments refers to the (often mutual) rights and obligations agreed by contract participants. These commitments define the nature and purpose of the contract. Take a sales contract as a typical example. The seller promises to deliver the goods and the buyer promises to pay a reasonable price
digital form
digital form means that contracts have to be written into computer-readable code. This is necessary, because as long as the participants reach an agreement, the rights and obligations of smart contract establishment are executed by a computer or computer network
to further explain:
(1) when will the parties to the smart contract reach an agreement? The answer depends on the specific smart contract implementation. Generally speaking, the contract is discovered when the parties are committed to the execution of the contract by installing the contract on the contract host platform< (2) contract execution
& quot; Execute & quot; And the real meaning of it also depends on implementation. Generally speaking, implementation means active implementation through technical means
(3) computer readable code
in addition, the contract needs specific & quot; Digital form & quot; Very much depends on the agreement that the parties agree to use
protocol
protocol is technical implementation, on this basis, the contract commitment is realized, or the contract commitment is recorded. Which agreement to choose depends on many factors, the most important of which is the nature of the assets being traded ring the performance of the contract
take the sales contract as an example. Suppose that the participants agree to pay in bitcoin. The chosen protocol will obviously be bitcoin protocol, on which the smart contract will be implemented. Therefore, the contract must use & quot; Digital form & quot; It's bitcoin scripting language. Bitcoin scripting language is a non Turing complete, imperative, stack based programming language, similar to forth.
although bitcoin can also write smart contracts, the syntax supported by bitcoin is only related to transactions, and there are limited things it can do
therefore, when it comes to writing smart contracts, it usually refers to Ethereum blockchain that supports the execution of Turing complete programs.
3. Option contract is a kind of agreement, which can give traders the right to buy or sell assets at a predetermined price before a specific date or on a specific date. Option contracts are trading derivatives that can be based on a wide range of underlying assets, including stocks and cryptocurrencies. These contracts may also come from information such as financial indicators. Generally, option contracts are used to hedge the risk of existing positions and speculative transactions.
what is Ethereum
Ethereum is often compared with bitcoin, but the situation is different. Bitcoin is a kind of cryptocurrency and distributed payment network, which allows bitcoin to be transferred between users
related: what is bitcoin? How does it work
Ethereum has a bigger goal. As Ethereum says, "Ethereum is a distributed platform running smart contracts.". These smart contracts run on "Ethereum virtual machine", a distributed computing network composed of all devices running Ethernet nodes
"distributed platform" means that anyone can set up and run an Ethereum node just as anyone can run a bitcoin node. Anyone who wants to run "smart contracts" on nodes must pay the operators of these nodes in ether, which is a cryptocurrency related to Ethereum. Therefore, the person running the Ethernet node provides computing power and gets paid in the Ethernet, which is similar to the way that the person running the bitcoin node provides hash power and pays in bitcoin
in other words, although bitcoin is only a blockchain and payment network, Ethereum is a distributed computing network, and its blockchain can be used for many other things. Details are provided in the Ethereum white paper
what is ether
Ethernet is a digital token (or cryptocurrency) related to Ethereum blockchain. In other words, Ethereum is the token and Ethereum is the platform. But now people often use these terms alternately. For example, coinbase allows you to buy Ethereum, which stands for Ethereum
this is technically "altcoin", which actually means a non bitcoin cryptocurrency. Like bitcoin, ether is supported by distributed blockchain - in this case, Ethereum blockchain
developers who want to create applications or Ethereum smart contracts on Ethereum blockchain need Ethernet token to pay for nodes to host it, while users of Ethereum based applications may need Ethernet to pay for services in these applications. People can also sell services outside the Ethereum network and accept Ethernet payments, or they can sell Ethernet tokens in cash - just like bitcoin
It's a pyramid scheme. The founder of express money has run away, so it can't be exchanged
Yao Zhiliang, deputy leader of the second brigade of the Economic Investigation Detachment of Shenzhen Public Security Bureau, told reporters that the so-called fast money can be classified as pyramid selling fraud, and it also belongs to illegal fund-raising projects. At present, the state is cracking down on such projects, and engaging in the promotion of so-called fast money will be prosecuted for organizing and leading pyramid selling
according to the introction of senior players, quick coin is likely to be the regeneration disk of Dick coin, that is to say, it was made by the original team. If Dick coin can't go on, it will find another trick instead of continuing to dig money. Early can make money, cloud mining machine is compound interest plate, static 100 days back. So in essence, the so-called decentralization and circulation are false, because it does not have the attribute of cryptocurrency
extended materials:
fast coin belongs to Shanzhai coin. Download the bitcoin source code, and slightly modify the source code (quantity, encryption method, etc.) to proce fast coin, which is also the technical basis of all Shanzhai coins
Secondly, it belongs to enterprise currency. Although express money claims not to be controlled by the central bank, every investor has a targeted investment object (purchase cloud mining machine), which means that express money is not a decentralized virtual currencyI hope it can help you. If your problem is solved, please click to adopt it, thank you
it is recommended not to participate in investment to avoid policy risks leading to losses.