美文网首页
智能合约

智能合约

作者: 今早上 | 来源:发表于2018-02-06 17:50 被阅读0次

Smart Contract

一份电子形式合同或协议, 通过软件自动执行和验证, 无需人为干预

智能合约- The DAO 事件

    the mother of all DAOs

    一个只能合约形式的VC基金,众筹了1.62亿美金

    股东通过众筹获得呆逼和投资股票权

    代码漏洞,被黑客盗走了大量代币

    被迫分叉,分裂为 ETH  和 ETC两种代币

以太坊主要特性

智能合约的部署运行  

https://ethereum.gitbooks.io/frontier-guide/   以太坊学习资料

geth attach ipc:/User...   没用到

部署智能源代码

pragma solidity ^0.4.0;

 contract Rating {

        function setRating (bytes32 _key, uint256 _value) public {

            ratings[_key] = _value;

        }

            mapping (bytes32 => uint256) public ratings;

}

在线编译

https://ethereum.github.io/browser-solidity/

相关文章

网友评论

      本文标题:智能合约

      本文链接:https://www.haomeiwen.com/subject/egagzxtx.html