Fork me on GitHub

随笔分类 -  区块链

摘要:借助 Hyperledger Fabric Client SDK for Node.js,您可以轻松地使用 API 来与基于 Hyperledger Fabric v0.6 的区块链交互。本教程将介绍如何编写客户端应用程序中的一些最常见和必要的功能。教程中的所有代码示例都包含在可重用的样本客户端中, 阅读全文
posted @ 2018-09-08 18:39 stardsd 阅读(1469) 评论(0) 推荐(0) 编辑
摘要:https://www.ibm.com/developerworks/cn/cloud/library/cl-ibm-blockchain-chaincode-testing-using-golang/index.html?ca=drs- 在本教程中,将学习测试驱动开发的概念,了解如何在 Golan 阅读全文
posted @ 2018-09-08 18:35 stardsd 阅读(799) 评论(0) 推荐(0) 编辑
摘要:https://www.ibm.com/developerworks/cn/cloud/library/cl-ibm-blockchain-chaincode-testing-using-golang/index.html?ca=drs- 在本教程中,将学习如何使用 Golang 为基于 Hyper 阅读全文
posted @ 2018-09-08 18:29 stardsd 阅读(999) 评论(0) 推荐(0) 编辑
摘要:composer 显示:Invalid Host header的解决方案 I have tried this workaround: Edit the following line in node_modules/webpack-dev-server/lib/Server.js (line 425) 阅读全文
posted @ 2018-08-08 13:38 stardsd 阅读(5239) 评论(0) 推荐(0) 编辑
摘要:you need to pass an npmrc file when you install the business network onto the peers. For more info see the pagehttps://hyperledger.github.io/composer/ 阅读全文
posted @ 2018-08-06 14:49 stardsd 阅读(5215) 评论(0) 推荐(0) 编辑
摘要:c错误描述 解决方案: you do not have Node.js 8 installed; Composer has required Node.js 8 since before v0.16.x. Please upgrade your version of Node.js to 8.x. 阅读全文
posted @ 2018-08-05 15:18 stardsd 阅读(408) 评论(0) 推荐(0) 编辑
摘要:I have installed hyperledger composer locally. But on localhost it gives error : Error : Error trying to ping. Error: No business network has been spe 阅读全文
posted @ 2018-08-03 16:52 stardsd 阅读(657) 评论(0) 推荐(0) 编辑
摘要:1、本篇背景 前面已经对链码开发作了比较详细的介绍,并且对官方提供的 fabcar 链码进行了解读,本篇将介绍如何使用 Node.js SDK 与区块链网络中的链码进行交互。 本篇内容基本来自官方 Hyperledger Fabric 文档中的 Writing Your First Applicat 阅读全文
posted @ 2018-08-02 14:05 stardsd 阅读(1844) 评论(0) 推荐(0) 编辑
摘要:在搭建hyperledger fabric的开发环境的时候,用docker去下载镜像,好慢好慢,慢到下了一个下午没有下载完成,最后还是失败了。最后去网上找了一下,发现有配置国内加速器加速镜像下载的方法,现在整理一下: 在搭建hyperledger fabric的开发环境的时候,用docker去下载镜 阅读全文
posted @ 2018-08-01 16:08 stardsd 阅读(1142) 评论(0) 推荐(0) 编辑
摘要:在我们的日常开发中经常会遇到这种情况:手上有好几个项目,每个项目的需求不同,进而不同项目必须依赖不同版的 NodeJS 运行环境。如果没有一个合适的工具,这个问题将非常棘手。 nvm 应运而生,nvm 是 Mac 下的 node 管理工具,有点类似管理 Ruby 的 rvm,如果需要管理 Windo 阅读全文
posted @ 2018-08-01 14:42 stardsd 阅读(2333) 评论(0) 推荐(0) 编辑
摘要:清理环境: 启动网络: docker ps -a create channel: join channel: 清理npm的模块,需要清理node_modules文件夹 <!--[endif]--> 阅读全文
posted @ 2018-08-01 10:56 stardsd 阅读(666) 评论(0) 推荐(0) 编辑
摘要:npm show grpc # 返回版本号 # 安装旧版本: npm install grpc@1.2.0 阅读全文
posted @ 2018-07-31 17:21 stardsd 阅读(334) 评论(0) 推荐(0) 编辑
摘要:错误描述: 现象: 解决方案: i do as the following steps and it works for me: input "docker network ls" to figure out the name of the network( it is "buildblockcha 阅读全文
posted @ 2018-07-31 12:35 stardsd 阅读(1965) 评论(0) 推荐(0) 编辑
摘要:If I run a server with the port 80, and I try to use xmlHTTPrequest i get this error: Error: listen EADDRINUSE Why is it problem for nodejs, if I want 阅读全文
posted @ 2018-07-30 00:04 stardsd 阅读(244) 评论(0) 推荐(0) 编辑
摘要:I try to run sample application as stated here : http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html I try to run sample applicat 阅读全文
posted @ 2018-07-29 23:50 stardsd 阅读(2319) 评论(0) 推荐(0) 编辑
摘要:因为npm连接的数据源网站太慢,可以使用淘宝提供的npm数据源, npm config set registry https://registry.npm.taobao.org 使用NPM(Node.js包管理工具)安装依赖时速度特别慢,为了安装Express,执行命令后两个多小时都没安装成功,最后 阅读全文
posted @ 2018-07-29 23:38 stardsd 阅读(30311) 评论(0) 推荐(1) 编辑
摘要:多次尝试才正常启动了Fabric,如遇到各种莫名错误,请参考如下一步步严格安装,特别用户权限需要注意。 一、安装Ubuntu16 虚拟机或双系统,虚拟机有VirtualBox或者VMware,Ubuntu 16.04镜像安装好。 打开系统设置,选择软件和更新 , 然后在下载自:中选择aliyun 二 阅读全文
posted @ 2018-07-26 19:23 stardsd 阅读(1463) 评论(0) 推荐(0) 编辑
摘要:I have a docker-compose.yaml file defining 5 services: I have a docker-compose.yaml file defining 5 services: orderer.example.com peer0.org1.example.c 阅读全文
posted @ 2018-07-25 09:59 stardsd 阅读(5327) 评论(1) 推荐(1) 编辑
摘要:This entire tutorial is the second part of the installation of Hyperledger Fabric v1.1. In the previous article, we installed all the dependencies req 阅读全文
posted @ 2018-07-23 20:57 stardsd 阅读(421) 评论(0) 推荐(0) 编辑