摘要: 1这里给希望兼容armv7和armv7s的朋友看到 ,下载xcode9.1或以下版本,执行命令: mac:sudo xcode-select -s /Applications/Xcode9.1.app/Contents/Developer 我的百度网盘下载的链接 链接: https://pan.ba 阅读全文
posted @ 2018-11-29 17:43 写代码的小书童 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: solidity 语言 pragma solidity ^0.4.20; /*pragma: 版本声明solidity: 开发语言 ^代表向上兼容*/ public,internal,pravate,external 4者的关系。 属性默认权限为inernal,只有public类型的属性才可能供外部 阅读全文
posted @ 2018-04-12 13:18 写代码的小书童 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2018-04-12 13:17 写代码的小书童 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 环境部署 1. brewMacOs包管理器 下载 brewMacOs包管理器 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2.go语言安装 bre 阅读全文
posted @ 2018-04-12 13:17 写代码的小书童 阅读(967) 评论(0) 推荐(0) 编辑
摘要: 一 下载和安装 下载需要取官网去下载。 ipfs 官网被墙。 需要FQ下载。 FQ用vpn 需要在全局模式下。不然还是访问不了 https://dist.ipfs.io/#go-ipfs 下载 go-ipfs 1 mac 电脑安装 命令行 进入下载路径下。 解压文件 tar xvfz go-ipfs 阅读全文
posted @ 2018-04-12 13:16 写代码的小书童 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: 1. web3.eth.getAccounts 展示所有账户。 web.eth.coinbase;显示默认账户,相当于 web3.eth.getAccounts[0]; 2.web3.sha3(""); 加密 3 web3.toHex({text:'PF'}) 将字符串"PF"转换为16进制。 4 阅读全文
posted @ 2018-04-12 13:16 写代码的小书童 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 一 搭建Parity 钱包 终端安装 : 前提是安装过Homebrew 。 不知道怎么安装Homebrew的可以看我之前的随笔。 1.brew tap paritytech/paritytech 2.brew reinstall parity 二 设置chain spec PoA chain 需要设 阅读全文
posted @ 2018-04-12 13:16 写代码的小书童 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 一 1 进入first-network 文件夹 cd first-network ./byfn.sh -m down // 关闭相关网络 ./byfn.sh -m generate // 创建2个节点 2 生成 创世区块 ../bin/cryptogen generate --config=./cr 阅读全文
posted @ 2018-04-12 13:15 写代码的小书童 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 一 基础准备环境 1 mac环境自带cURL 不用安装 curl --version 检查版本 2 安装docker https://docs.docker.com/manuals/ 安装后 docker version docker-compose version 3 安装Homebrew 4 安 阅读全文
posted @ 2018-04-12 13:15 写代码的小书童 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 区块链 是一份连续不断的交易记录文档。 挖矿是指 根据区块中交易数据data+时间戳,便利nonce值,计算出开头为0000(难度为哈希值前面0的个数,0越多难度越大)有效的哈希值为止计算获得所对应的nonce值。 这个过程叫挖矿。 https://anders.com/blockchain/blo 阅读全文
posted @ 2018-03-02 10:45 写代码的小书童 阅读(218) 评论(0) 推荐(0) 编辑