blockchain

What are the functional differences between Fabric Javascript SDK and Hyperledger Composer?

梦想与她 提交于 2019-12-04 05:56:42
问题 Other than the fact that Composer makes deployment and testing of prototype business networks easier and the fact that we don't have to know golang to develop chaincode, what is the difference in the functionalities that these interfaces provide that may lead one to choose one over the other? 回答1: This article can probably provide you with the answers you need: https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/ Hyperledger Composer is both an application

Can blockchain be stored in SQL or even noSQL database?

为君一笑 提交于 2019-12-04 05:16:43
From what i know, blockchain database isn’t stored in any single location, meaning the records it keeps are truly public and easily verifiable. No centralized version of this information exists for a hacker to corrupt. Hosted by millions of computers simultaneously, its data is accessible to anyone on the internet. So my question is can we store blockchain in for example sql? or it can only be stored in a database that works on its own? Currently decentralized blockchain applications have few options to store data. Decentralized storage options are: Storing everything in blockchain itself Peer

Can we create non-fungible tokens with Hyperledger?

≯℡__Kan透↙ 提交于 2019-12-04 02:01:47
问题 According to ERC-721 ERC-721 is a free, open standard that describes how to build non-fungible or unique tokens on the Ethereum blockchain. While most tokens are fungible (every token is the same as every other token), ERC-721 tokens are all unique. Is there a provision on a permissioned blockchain like hyperledger for non-fungile tokens ? 回答1: Why would you do this, since Hyperledger is a permissioned blockchain and Ethereum a public one? Anyways, if you mean to create an asset with a unique

Issue while using fabric client java sdk (since there is no Rest API support) in local development environment for Hyperledher Fabric V1.0

核能气质少年 提交于 2019-12-03 23:09:36
问题 I have done the following as per the suggestion that I have got from my previous post to communicate with locally running Hyperledger Fabric V1.0 network from java application. But I am getting the exceptions given below and unable to sort it out why it is happening. public class Test { final HFClient client = HFClient.createNewInstance(); Channel channel; TransactionProposalRequest proposalRequest; void setupCryptoMaterialsForClient() throws CryptoException, InvalidArgumentException{ // Set

hyperledger fabric invoke.js “Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]”

旧时模样 提交于 2019-12-03 22:16:11
I am able to invoke my chaincode from docker cli successfully (fabric-shim). i ran enrollAdmin.js and registerUser.js sucessfully, but when i try to run invoke.js or query.js, i get Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP] . Though there are limited information shows above, the peer log give the essential hint about the problem: WARN 044 channel [mychannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate

How are new participants authenticated into a channel in hyperledger fabric

╄→尐↘猪︶ㄣ 提交于 2019-12-03 21:42:13
I came across Hyperledger fabric client which has methods/functions to authenticate new members into blockchain network. But I am not sure how I can authenticate new users into a channel in blockchain network. Can i use channel configuration(configtx) in hyperledger fabric to invite/register new participants into a channel? Link to channel configuration : http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html#channel-creation you can use fabric-ca. Fabric-ca provides several apis for user management. You may register, revoke, enroll, reenroll users by fabric-ca. And the documents for

Get token balance with Ethereum RPC?

只谈情不闲聊 提交于 2019-12-03 20:45:01
how display balance of token through Ethereum RPC? $id = 0; $data = array(); $data['jsonrpc'] = '2.0'; $data['id'] = $id++; $data['method'] = 'eth_call'; $data['params'] = [['from' => '0x0...', 'to' => '0x0...', 'data' => 'contract byte code here 0x0...'], 'latest']; $ch = curl_init(); ... Return: {"jsonrpc":"2.0","id":0,"result":"0x"} What to do next? Call contract method balanceOf? How to do that? Kris Roofe To get token balance with eth_call you need to and data parameter. to is contract address, here we need to generate the data parameter. As the doc eth_call says, data: DATA - (optional)

How can the transaction certificates in Hyperledger be used to enforce privacy?

邮差的信 提交于 2019-12-03 20:34:37
I am creating a blockchain app in Hyperledger that performs a bidding process for a manufacturing company. The bidding process involves 4 suppliers (Supplier A to Supplier D). The one with the lowest bid wins. I am able to create the chaincode for this. However, since it is a blockchain, the suppliers can see each other's bid (e.g., by simply looking at the contents of the blocks). In addition, the non-winning suppliers will know who actually won the bidding process. I want to enforce the following privacy rules in the blockchain: a. the bid of a particular supplier should be viewable only by

ERROR: manifest for hyperledger/fabric-orderer:latest not found

谁说我不能喝 提交于 2019-12-03 17:01:25
问题 I am trying to start up network using following command ./network_setup.sh up channel After running this command I am receiving this errro ERROR: manifest for hyperledger/fabric-orderer:latest not found How I can remove this error?please help me 回答1: This error information reveals that currently there is NO existing 'latest' tag in most 'fabric-*' images on the public docker Hub. We have to specify which image version we want to pull, either in docker command or docker-compose file You can

Limit of number of nodes in Hyperledger

蹲街弑〆低调 提交于 2019-12-03 16:43:11
In Hyperledger-fabric blockchain, is there a limit to the number of nodes participating in a network? If yes, how many nodes can be in a network? To get the complete functionality of blockchain(consensus mechanism, hyperledger fabric uses PBFT consensus which means it will accept any transaction to be valid if more than 66% of the nodes are up and running. In short more than 66% of nodes must be up and must validate the order to requests in Hyperledger farbic. Both the Starter Developer plan and the High Security Business Network plan enable you to test the Practical Byzantine Fault Tolerance