摘要: pragma solidity ^0.4.22; contract Voting { mapping (bytes32 => uint8) public votesReceived; bytes32[] public candidateList; constructor(bytes32[] cand 阅读全文
posted @ 2022-09-14 14:38 caolingyi 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Solidity是什么 • Solidity 是一门面向合约的、为实现智能合约而创建的高级编 程语言。这门语言受到了 C++,Python 和 Javascript 语言的 影响,设计的目的是能在以太坊虚拟机(EVM)上运行。 • Solidity 是静态类型语言,支持继承、库和复杂的用户定义类 型 阅读全文
posted @ 2022-09-14 14:12 caolingyi 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 用 Geth 搭建以太坊私链 安装Geth 一、apt-get $ sudo apt-get install software-properties-common $ sudo add-apt-repository -y ppa:ethereum/ethereum $ sudo apt-get up 阅读全文
posted @ 2022-09-14 14:12 caolingyi 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 区块链以太坊 阅读全文
posted @ 2022-09-14 11:42 caolingyi 阅读(403) 评论(0) 推荐(0) 编辑