hyperledger

Hyperledger SDK for Java chaincode (shim-client-1.0)

ⅰ亾dé卋堺 提交于 2019-12-08 04:19:57
问题 I tried to compile chaincode sample and write my own one (https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample) However, I can't get a shim-client-1.0. Do you have plans to make java sdk public? 回答1: I hope that “shim-client-1.0.jar” will be added to maven repository soon, nevertheless you can try to compile it using source code in “github.com/hyperledger/fabric/core/chaincode/shim/java”. gradle build and "shim-client-1.0.jar" will be available in github.com

HFC: CC deployment successfull while PEER: “Error building images: …”

妖精的绣舞 提交于 2019-12-08 03:11:40
问题 TL;DR; Go to ---- EDIT section below I am using hfc@0.6.5 in a standalone node.js application. A membersrvc and peer are started with docker-compose , where: membersrvc: container_name: membersrvc image: hyperledger/fabric-membersrvc:latest ports: - "7054:7054" command: membersrvc vp0: container_name: peer image: hyperledger/fabric-peer:latest ports: - "7050:7050" - "7051:7051" - "7053:7053" environment: - CORE_PEER_ADDRESSAUTODETECT=true - CORE_VM_ENDPOINT=unix:///var/run/docker.sock - CORE

[转帖]Hyperledger Fabric 学习一:简介

本秂侑毒 提交于 2019-12-08 00:36:28
Hyperledger Fabric 学习一:简介 https://www.jianshu.com/p/f971858b70f3?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation 1、Hyperledger简介 Hyperledger:超级账本,是首个面向企业应用场景的分布式账本平台,包括了:IBM、Intel、Cisco、DAH、摩根大通、R3等在内的众多科技和金融巨头的贡献参与,在银行、供应链等领域得到了广泛的关注和发展,目前已经拥有超过200家企业成员。 Hyperledger项目: 2015年12月,由开源世界的旗舰组织Linux基金会牵头,30家初始企业成员共同宣布Hyperledger联合项目成立。 成立之初,IBM贡献了4万多行已有的OpenBlockchain代码,Digital Asset则贡献了企业和开发者相关资源,R3贡献了新的金融交易架构,Inter也贡献了分布式账本相关的代码。 作为一个联合项目,旗下由面向不同的场景的子项目构成:包括Fabric、Sawtooth、Iroha、BlockChain Explorer、Cello、indy、Composer、Burrow等8大顶级项目。 Fabric:是一个带有准入机制的企业级联盟链项目

Can a World State variable be accessed by a chaincode different from the one that deployed it?

≡放荡痞女 提交于 2019-12-07 22:39:12
问题 If a chaincode A stores a variable V to the World State can this variable V be accessed by another chaincode B? In other words, are variables in the World State access protected? If it is not possible, how can I make chaincode B read the variables from chaincode A (I need it for my use case)? 回答1: No, variables stored by some chaincode A can only be accessed by the same chaincode A. So if a chaincode B tries to access the variable V, access will be denied. If you wanted to access such

How to print and view logs from Hyperledger Fabric chaincode

主宰稳场 提交于 2019-12-07 19:55:53
问题 I want to see logs while calling functions in my chaincode, for debugging purposes. I tried something like this: var logger = shim.NewLogger("chaincode_example02") logger.Info("get_caller_data called"); I've viewed logs of the peer running the chaincode, but I couldn't find the above log. What am I doing wrong? 回答1: If you startup your chaincode in dev mode using a command like ./chaincode_example02 , then the log statements should be visible in the console where that same process is started.

使用Cello部署HyperLedger超级账本

你说的曾经没有我的故事 提交于 2019-12-07 16:30:20
HyperLedger超级账本支持使用Cello部署,目前还在开发之中。 超级账本官网, https://hyperledger.org Cello官网代码, https://gerrit.hyperledger.org/r/#/admin/projects/cello Cello代码镜像, https://github.com/hyperledger/cello Cello的Kubernetes支持, https://github.com/hyperledger/cello-k8s-operator Cello分析服务, https://github.com/hyperledger/cello-analytics Wiki, Cello Wiki . Hyperledger Cello是一个区块链操作的服务和操作软件,用于帮助更有效地管理HyperLedger区块链网络。 简介 使用Cello, 可以容易地实现: 快速创建Blockchain as a Service (BaaS) 平台。 提供可定制的 Blockchains ,如Hyperledger fabric network v1.0。 维护一个运行blockchain networks的池,运行在裸机、虚拟云 (如virtual machines、vsphere Clouds)、容器集群(如Docker, Swarm,

How to resolve this error (t: Identifier cannot extend from super type) on Hyperledger Composer playground?

拥有回忆 提交于 2019-12-07 13:40:27
问题 Im following the Hyperledger tutorial Youtube Link and the instructor modifies a sample contract. However with the current version of Hyperledger fabric playground which can be accessed online, there is no mention of state after entering the accountTransfer function. This leads to an error as shown below: How to solve the same? I have tried searching for answers but I couldnt find any which addresses this specific issue. 回答1: t: stands for transaction. you have two problems in your model

Hyperledger fabric: No script

三世轮回 提交于 2019-12-07 13:24:02
问题 I am following the tutorial on http://hyperledger-fabric.readthedocs.io to setup my own hyperledger. I am building the first network using "first-network" in the fabric-samples. The ./byfn -m generate is OK, but after using ./byfn -m up I receive the below error: /bin/bash: ./scripts/script.sh: No such file or directory The script.sh file is available in: \fabric-samples\first-network\scripts After running 'docker ps -a' I get: My OS is Windows 10. Does anyone know what is causing this and

How to get all existing channels in Hyperledger 1.0 (Node SDK)

ⅰ亾dé卋堺 提交于 2019-12-07 12:11:53
问题 I am using the Node SDK with Hyperledger 1.0 and want to check if a channel with a specific name exists. Is there a way to query all existing channels? And is there a way to get a channel by name? 回答1: You cannot see all available channels, while you can leverage CSCC (Configuration System Chaincode) GetChannels API to get a list of channels client eligible to. You just need to invoke chaincode named CSCC. The CSCC is the system chaincode, meaning it inherently built in into peer binary and

Azure Hyperledger Fabric Single Member Blockchain setup

倾然丶 夕夏残阳落幕 提交于 2019-12-07 10:04:07
问题 I'm starting to use Azure to host a multi node Hyperledger network. I've previously been running on a local environment, but would like to use Azure. I've deployed the 'Hyperledger Fabric Single Member Blockchain' template, which creates five VM's (one each for a CA, orderer and three peers). My local environment uses a CLI, but this doesn't seem to be in the Azure template. How do i interact with the blockchain network without the CLI? Are there any tuturials for how to use the deployed