blockchain

can we establish a blockchain (precisely DAG) as an infrastructure of a cryptocurrency, which uses only Proof Of Stack to securing transactions?

▼魔方 西西 提交于 2021-01-29 16:40:54
问题 Sorry for too long post, but I had no choise! So the question is “can we establish a blockchain (precisely DAG) as an infrastructure of a cryptocurrency, which uses only Proof Of Stack to securing transactions?”. What are the flaws of this approach? The scenario is like that: I develop and release the prototype software and run the first node. As a founder and the first member of the network, I made a to-do list of future develops of that software. The goal is improve software and strengthen

How to deposit ether to an account using solidity and web3?

孤人 提交于 2021-01-29 05:49:21
问题 I am building a sample smart contract . I am trying to deposit ether from 1 account to another but the issue is amount is deducted from the sender's account but not able to deposit to receiver's account. Here is my contract code : pragma solidity ^0.5.0; contract ApprovalContract{ address public sender; address public receiver; function deposit(address _receiver) external payable { require(msg.value > 0); sender = msg.sender; receiver = _receiver; address payable _rec = receiver.make_payable(

Error while instantiating the java chaincode on Hyperledger fabric network

谁说我不能喝 提交于 2021-01-29 04:18:23
问题 Java chaincode install is successful and I can see the chaincode has been installed successfully. I am getting error while instantiating the java chaincode on Hyperledger fabric network. Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found Can I get some help? Thanks 来源: https:/

Hyperledger fabcar sample fabric showing connect failed ERROR

时光总嘲笑我的痴心妄想 提交于 2021-01-27 06:13:05
问题 I am trying to install hyperledger and run chain code. I followed all the steps as directed here. But getting error error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed while running the query.js. I have following active docker running Before running the node query.js , when i am running npm install its giving following warning : npm WARN fabcar@1.0.0 No repository field. Is this the problem. Can any one please help me out about where it is going wrong. 回答1

What are Members and Admins in Endorsement Policy of hyperledger-fabric

此生再无相见时 提交于 2021-01-21 06:01:34
问题 From the Docs of Hyperledger-Fabric "In Endorsement Policy , Currently, two roles are supported: member and admin." What are these members and Admins. Is they are equal to Peers ?. In Orgs crypto-config folder there are Admin certs and User certs , is these are the certificates that are used to Sign the Endorsement?. Say I gave an endorsement policy that admin of org1 has to sign , then i enrolled into the network by using "Jim" credentials , then upon submitting transaction how does the

Warning: SPDX license identifier not provided in source file

可紊 提交于 2021-01-04 05:46:07
问题 I created a new solidity contract. The contract is up and running but giving me this warning. Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. There are no errors while compilation. The Compiler version I am using in https://remix.ethereum.org/ is

Warning: SPDX license identifier not provided in source file

前提是你 提交于 2021-01-04 05:40:29
问题 I created a new solidity contract. The contract is up and running but giving me this warning. Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. There are no errors while compilation. The Compiler version I am using in https://remix.ethereum.org/ is

What happens when certificates got renewed in Hyperledger Fabric?

偶尔善良 提交于 2020-12-29 07:49:26
问题 I'm adopting the Hyperledger Fabric to build applications for my business. Since permissioned blockchains like Fabric rely heavily on the PKI for identity management, and the fact that every transaction on the network requires signatures from participating components along way the transaction flow and transactions with those signatures finally got immutably persisted in the ledger. I wonder what happens if participating components would have to renew their certificates? For example, the

以太坊区块链说的gas/gas price/gas cost是什么?

眉间皱痕 提交于 2020-12-24 10:39:04
https://www.reddit.com/r/ethereum/comments/271qdz/can_someone_explain_the_concept_of_gas_in_ethereum/ https://www.reddit.com/r/ethereum/comments/3fnpr1/can_someone_possibly_explain_the_concept_of/ https://www.reddit.com/r/ethereum/comments/49gol3/can_ether_be_used_as_a_currency_eli5_ether_gas/ Operation Name Gas Cost Remark step 1 default amount per execution cycle stop 0 free suicide 0 free sha3 20 sload 20 get from permanent storage sstore 100 put into permanent storage balance 20 create 100 contract creation call 20 initiating a read-only call memory 1 every additional word when expanding