涛子 - 简单就是美

成单纯魁增,永继振国兴,克复宗清政,广开家必升

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  428 随笔 :: 0 文章 :: 19 评论 :: 22万 阅读

02 2018 档案

摘要:函数过载 事件 使用log低层接口 用于理解事件的其他资源 接口 当合约继承其他合约,仅一个单独的合约被区位链建立,代码从基础合约复制到建立的合约中。 阅读全文
posted @ 2018-02-28 17:29 北京涛子 阅读(200) 评论(0) 推荐(0) 编辑

摘要:View Functions Pure Functions Fallback Function javascript 合约可以有一个匿名函数,这个函数不能有参数,也不能返回结果。假如没有函数匹配给定的函数标识,合约将调用。 函数在合约收到以太后执行,另外,为了能接收以太,回退函数必须使用关键字pay 阅读全文
posted @ 2018-02-28 17:05 北京涛子 阅读(151) 评论(0) 推荐(0) 编辑

摘要:函数修饰符 常量 阅读全文
posted @ 2018-02-28 16:55 北京涛子 阅读(166) 评论(0) 推荐(0) 编辑

摘要:可见性和访问限制符 复杂一些的示例 阅读全文
posted @ 2018-02-28 14:57 北京涛子 阅读(216) 评论(0) 推荐(0) 编辑

摘要:输入参数 输出参数 返回多个值 内部函数调用 外部函数调用 阅读全文
posted @ 2018-02-28 14:48 北京涛子 阅读(104) 评论(0) 推荐(0) 编辑

摘要:输入参数 输出参数 返回多个值 内部函数调用 外部函数调用 通过new建立合约 阅读全文
posted @ 2018-02-28 14:48 北京涛子 阅读(118) 评论(0) 推荐(0) 编辑

摘要:单位和全局变量 专用变量和函数 错误处理 assert(bool condition): throws if the condition is not met to be used for internal errors. require(bool condition): throws if the 阅读全文
posted @ 2018-02-28 11:55 北京涛子 阅读(164) 评论(0) 推荐(0) 编辑

摘要:映射 阅读全文
posted @ 2018-02-28 11:48 北京涛子 阅读(108) 评论(0) 推荐(0) 编辑

摘要:结构体 javascript pragma solidity ^0.4.11; // 众筹合约 contract CrowdFunding { // 投资者 struct Funder { address addr; uint amount; } // 活动 struct Campaign { ad 阅读全文
posted @ 2018-02-28 11:44 北京涛子 阅读(128) 评论(0) 推荐(0) 编辑

摘要:引用类型(Reference Types) 数组 在内存中建立数组 数组常量 完整例子 javascript pragma solidity ^0.4.16; contract ArrayContract { uint[2 20] m_aLotOfIntegers; // Note that the 阅读全文
posted @ 2018-02-27 17:01 北京涛子 阅读(155) 评论(0) 推荐(0) 编辑

摘要:内部函数示例 javascript pragma solidity ^0.4.16; library ArrayUtils { // internal functions can be used in internal library functions because // they will b 阅读全文
posted @ 2018-02-27 16:36 北京涛子 阅读(129) 评论(0) 推荐(0) 编辑

摘要:变量类型(Value Types) bash 固定大小的字节数组 关键字 bytes1 ~ bytes32, bytes(bytes1) 比较操作符 , = 位操作符 &,!,^,~, 索引访问 x[k], 0 阅读全文
posted @ 2018-02-27 15:29 北京涛子 阅读(185) 评论(0) 推荐(0) 编辑

摘要:合约(contract)由变量(variable)、函数(functions)、函数修饰符(function modifiers)、事件(events)、结构体类型(struct type)、枚举类型(enum type)组成。 阅读全文
posted @ 2018-02-27 15:06 北京涛子 阅读(153) 评论(0) 推荐(0) 编辑

摘要:https://hashnode.com/post/how to build your own ethereum based erc20 token and launch an ico in next 20 minutes cjbcpwzec01c93awtbij90uzn https://stee 阅读全文
posted @ 2018-02-13 11:16 北京涛子 阅读(542) 评论(0) 推荐(0) 编辑

摘要:什么是共识机制 共识机制分类 PoW( Proof of Work)工作量证明——多劳多得 PoS(Proof of Stake)股权证明算法——持有越多,获得越多 DPOS(Delegated Proof of Stake)股份授权证明 DAG(Directed acyclic graph)有向无 阅读全文
posted @ 2018-02-13 10:58 北京涛子 阅读(3222) 评论(0) 推荐(0) 编辑

摘要:同步以太坊,配置rpc地址 https://www.51chain.net/portal/book/EthereumFrontierGuide/JSONRPCAPI 121.html https://luren5.gitbooks.io/dapp develop/content/43 %E8%B0% 阅读全文
posted @ 2018-02-11 14:16 北京涛子 阅读(4015) 评论(0) 推荐(0) 编辑

摘要:```python [root@us 1 217 install] cat gen7.py !/usr/bin/env python coding: utf 8 import os, crypt base_path = '/opt/opmgmt/install' pxe_path = os.path 阅读全文
posted @ 2018-02-11 12:48 北京涛子 阅读(364) 评论(0) 推荐(0) 编辑

摘要:https://github.com/ethereum/go ethereum/wiki http://book.8btc.com/books/6/ethereum/_book/public chain chain.html https://www.cnblogs.com/zl03jsj/p/687 阅读全文
posted @ 2018-02-08 15:13 北京涛子 阅读(2007) 评论(0) 推荐(0) 编辑

摘要:http://truffleframework.com/tutorials truffle是以太坊开发框架,采用JavaScript编写,支持智能合约的编译、部署和测试。 可以使用本地测试网络(ganache、testrpc),公共开发者测试网络(Ropsten、Kovan、Rinkeby),私有网 阅读全文
posted @ 2018-02-07 15:38 北京涛子 阅读(316) 评论(0) 推荐(0) 编辑

摘要:https://www.zhihu.com/question/27669212/answer/38037256 就拿A给B发送经过签名加密信息来说: 1、A对信息签名的作用是确认这个信息是A发出的,不是别人发出的; 2、加密是对内容进行机密性保护,主要是保证信息内容不会被其他人获取,只有B可以获取。 阅读全文
posted @ 2018-02-02 17:51 北京涛子 阅读(179) 评论(0) 推荐(0) 编辑

摘要:``` // 通过将设置放入设置文件中来覆盖设置。 { // 编辑器配置 // 控制字体系列。 "editor.fontFamily": "Consolas, 'Courier New', monospace", // 控制字体大小。 "editor.fontSize": 14, // 控制行高。 阅读全文
posted @ 2018-02-01 10:14 北京涛子 阅读(2245) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示