区块链
weixin_44553669
这个作者很懒,什么都没留下…
展开
-
Ubuntu16.04+fabric1.4部署环境
参考博客:https://blog.csdn.net/weixin_44573310/article/details/108553953https://blog.csdn.net/u013782473/article/details/100608795提前说明,下面给的代码语句,如果遇到跑不通的情况,可以试试在前面加sudo,很多问题就是因为权限不够引起的。一、前期准备1、cURL最新版安装# 下载最新版的cURL并将其解压wgethttps://curl.haxx.se/download/c原创 2020-11-18 13:07:22 · 573 阅读 · 2 评论 -
搭建一个区块链程序的实践
https://blog.csdn.net/blockchain_lemon/article/details/80837336https://github.com/dvf/blockchainhttps://zhuanlan.zhihu.com/p/127820010原创 2020-11-04 19:15:16 · 326 阅读 · 0 评论 -
2020-11-03Solidity学习
2020-11-03Solidity学习参考博客https://www.qikegu.com/docs/4989Solidity中,合约类似于c++中的类。合约包含以下部分:构造函数 – 使用constructor关键字声明的特殊函数,每个合约执行一次,在创建合约时调用。状态变量 – 用于存储合约状态的变量。函数 – 智能合约中的函数,可以修改状态变量来改变合约的状态。可见性与其他语言的类一样,合约中的函数和变量也有可见性:external − 外部函数由其他合约调用,要在合约内部调原创 2020-11-03 10:45:27 · 162 阅读 · 1 评论 -
2020-11-02 Solidity学习
2020-11-02 Solidity学习参考博客https://blog.csdn.net/zmrlinux/article/details/106551733https://remix.ethereum.org/https://www.qikegu.com/docs/4953引用类型/复合数据类型1 数组 (字符串与bytes是特殊的数组,所以也是引用类型)2 struct (结构体)3 map (映射)这些类型涉及到的数据量较大,复制它们可能要消耗大量Gas,非常昂贵,所以使用它们时原创 2020-11-02 16:16:29 · 268 阅读 · 1 评论 -
2020-11-01以太坊搭建
ubuntu下安装nodejs和npm安装nodejs :sudo apt-get install nodejs运行 nodejs -v 会弹出安装node的版本号这里使用的是 nodejs 并不是常用的node ,可以通过sudo ln -s /usr/bin/nodejs /usr/bin/node命令让node与nodejs建立软连接,接着就可以使用 node命令安装npm:sudo apt-get install npm测试安装是否成功: npm -v 弹出安装的版本号,即原创 2020-11-01 21:11:45 · 1022 阅读 · 1 评论 -
Hyperledger Fabric2.2 环境搭建 部署
参考博客:https://blog.csdn.net/shengsikandan/article/details/107656060官方文档: https://hyperledger-fabric.readthedocs.io/en/latest/install.html一、必备软件根据官方文档配置就可以了二、Fabric2.2 环境搭建cd #cd 不加内容是默认返回Home文件夹mkdir -p go/src/github.com/hyperledger/原创 2020-09-03 14:06:01 · 523 阅读 · 1 评论 -
Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:70
Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = “transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused” Channel原创 2020-09-03 13:55:35 · 3911 阅读 · 6 评论