blockchain

Running parameterized queries

萝らか妹 提交于 2019-12-13 05:08:37
问题 Quite new to this google bigquery sql thing so please bear with me. I'm trying to build a google standardSQL parameterized query. The following sample was used and ran successfully on Google BigQuery WebUI. #standardSQL WITH time AS ( SELECT TIMESTAMP_MILLIS(timestamp) AS trans_time, inputs.input_pubkey_base58 AS input_key, outputs.output_pubkey_base58 AS output_key, outputs.output_satoshis AS satoshis, transaction_id AS trans_id FROM `bigquery-public-data.bitcoin_blockchain.transactions`

Hyperledger first network sample error

我与影子孤独终老i 提交于 2019-12-13 04:09:16
问题 I am following this link first-network to run hyperledger samples name first-network . I am using Ubuntu 18.04LTS ./byfn.sh -m generate got successfully executed. When I am trying to execute ./byfn.sh -m up I am getting error `2018-05-08 08:45:22.485 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder !!!!!!!!!!!!!!! Channel creation

Upgrading Hyperledger Fabric Business Network

微笑、不失礼 提交于 2019-12-13 03:59:28
问题 I am working with composer 0.19.8 to develop hyperledger blockchain app. My problem is that every time I make changes to the blockchain models I have to update the business network version in package.json and restart the fabric server in order for changes to reflect on Composer REST Server. If I do not do that the changes I made are not reflected on the rest server API(generated API by composer-rest-server command). Is there a way to override the current business network version instead of

Hyperledger Blockchain Endorsement Policy Guidelines/Recommendation

早过忘川 提交于 2019-12-13 03:43:23
问题 I can modify Hyperledger's endorsement policy at instantiate time as described in the docs here. However, is there some guideline on how many peers should endorse a transaction? I understand that not all peers need to be endorsing peers but generally, what would be the minimum acceptable number in terms of total number of peers? Of course it varies from application to application, but would be nice to have some guideline/insights. 回答1: what would be the minimum acceptable number in terms of

Is Hyperledger a truly secure blockchain like ethereum?

China☆狼群 提交于 2019-12-12 23:44:49
问题 In Hyperledger we have something called a network admin and this admin will have access to all the cards and assets on the blockchain (at least I have tried to deny the admin access to assets using the acl, but I couldn't deploy the change, it timed out Everytime). So, is it possible to isolate admin from our business network? Or all the blockchains like ethereum too have the network admin? 回答1: I believe you are referring in your question to Hyperledger Composer rather than Hyperledger

Error invoking chaincode using Node.js SDK [TypeError: Cannot read property 'getConnectivityState' of undefined]

佐手、 提交于 2019-12-12 10:15:55
问题 Failed to invoke successfully :: TypeError: Cannot read property 'getConnectivityState' of undefined /opt/share/hyperledger/node_modules/fabric-client/lib/EventHub.js:355 if(self._stream) state = self. stream.call.channel .getConnectivityState(); ^ TypeError: Cannot read property 'getConnectivityState' of undefined at ClientDuplexStream.<anonymous> (/opt/share/hyperledger/node_modules/fabric-client/lib/EventHub.js:355:56) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211

How to improve smart contact design in order to distinguish data and their manipulation functions for the same domain object?

泪湿孤枕 提交于 2019-12-12 09:59:53
问题 We have a problem with contract redeploying. Each time when some logic is changed during new contract version deployment we are loosing all contract related data (which are stored in arrays, mappings). Then we need to execute data load procedures in order to restore environment to desired state which is time consuming action. I tried to split contract to tow ones (AbcDataContract, AbcActionsContract) but faced with problem of accessing to the mappings : Error: Indexed expression has to be a

Implement inter-channel security among the peers within the same channel in Hyperledger Fabric V1.0

我与影子孤独终老i 提交于 2019-12-12 09:48:11
问题 I have successfully create a Hyperledger Fabric v1.0 network locally by following the steps Building Your First Network and communicating to this network from my java application using fabric-sdk-java. Here it created the certificates using cryptogen tools and is able to invoke/query chaincode through each of the peers which participating in the same channel. My implementations is like: I have four organisations Org1, Org2, Org3 and Org4 each having one peer. When Org1 creating an asset A1

Immutability in Hyperledger Fabric

蹲街弑〆低调 提交于 2019-12-12 09:24:19
问题 Can someone explain how the immutability is implemented in Hyperledger Fabric? If we have private channel with little amount of peers, how it can be guaranteed, that one side hasn't changed data in it's ledger? 回答1: In order to guarantee that no party in the channel has tampered data in its own favor you need to present sophisticated endorsement policy to include all required parties and make sure they adequately represented within endorsement policy. Hence making it obligatory for client

Hyperledger Composer : No business network has been specified for this connection

南笙酒味 提交于 2019-12-12 09:04:31
问题 I have installed hyperledger composer locally. But on localhost it gives error : Error : Error trying to ping. Error: No business network has been specified for this connection. I am not able to add model and script file as well. This is the errors showing in terminal error: [Hyperledger-Composer] undefined:HLFConnection :ping() Error: Error trying to ping. Error: No business network has been specified for this connection at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules