blockchain

How to install telnet in Docker for Windows 10

∥☆過路亽.° 提交于 2020-01-15 10:31:27
问题 When I run telnet command in Docker it does not run. Could you please tell me how to install telnet in Docker for Windows? 回答1: There is a docker image for it: docker run mikesplain/telnet <host> <port> 回答2: Old question I know but you can install telnet on docker for windows with the following in your dockerfile RUN powershell -Command Add-WindowsFeature "telnet-client" 回答3: If you are trying to telnet into your container to gain access to it, that isn't how you would want to connect. Docker

Do blockchains contain a websocket server?

倖福魔咒の 提交于 2020-01-14 10:44:47
问题 I was recently reading about blockchains and am very intrigued by this technology. I had a few questions regarding blockchains: Do Blockchains use web-sockets to transmit information between users? If yes then is the information(blocks) sent always a JSON object? Do all users have the entire copy of the blockchain, do they each just see a partial copy of the blockchain? if yes then how big can the file get? Also, what determines transactions/second? I read bitcoin does about 7transactions

Send Raw Transaction Ethereum infura nodejs npm

我的梦境 提交于 2020-01-14 10:42:49
问题 I'm currently trying to implement an ethereum Node Connection to my Typescript/ Node Project. I'm connection to the "Infura" node server where i need to sign my transaction locally. Well, anyway. I'm signing my transaction using the npm package "ethereumjs-tx" and everything looks great. When i'm using "sendRawTransaction" from web3 my response is an tx-id which means my transaction should be allready in the Blockchain. Well... it isn't My sign Transaction Function is below. private

Cross-ledger communication between Hyperledger Fabric and Hyperledger Indy

筅森魡賤 提交于 2020-01-12 10:10:07
问题 Is it possible to have a cross-ledger identity management between hyperledger fabric and indy? Is it possible to communicate between Hyperledger Fabric and Hyperledger Indy? Can I read the data from Fabric and store it in Indy and vice-versa? My idea is to use Indy to authenticate identities and use Fabric to store data through chaincodes using the communicated credentials. Is Quilt the tool for it? 回答1: Hyperledger Indy is a decentralised identity system, while Hyperledger Fabric is a

Cross-ledger communication between Hyperledger Fabric and Hyperledger Indy

点点圈 提交于 2020-01-12 10:10:02
问题 Is it possible to have a cross-ledger identity management between hyperledger fabric and indy? Is it possible to communicate between Hyperledger Fabric and Hyperledger Indy? Can I read the data from Fabric and store it in Indy and vice-versa? My idea is to use Indy to authenticate identities and use Fabric to store data through chaincodes using the communicated credentials. Is Quilt the tool for it? 回答1: Hyperledger Indy is a decentralised identity system, while Hyperledger Fabric is a

Send ERC20 token with web3

时光怂恿深爱的人放手 提交于 2020-01-08 16:26:42
问题 I'm currently using 0.2x.x version of Web3 Javascript API. I deployed my custom ERC20 token by creating smart contract in solidity (on REMIX IDE). I installed the MetaMask and had a test on https://wallet.ethereum.org/ to send some custom ERC token to another my account. It worked well. I want to add the 'send custom ERC20 Token' function in my javascript code using Web3. Here is my code below. var http = require('http'); var Web3 = require('web3'); var Tx = require('ethereumjs-tx'); var abi

Send ERC20 token with web3

大憨熊 提交于 2020-01-08 16:25:10
问题 I'm currently using 0.2x.x version of Web3 Javascript API. I deployed my custom ERC20 token by creating smart contract in solidity (on REMIX IDE). I installed the MetaMask and had a test on https://wallet.ethereum.org/ to send some custom ERC token to another my account. It worked well. I want to add the 'send custom ERC20 Token' function in my javascript code using Web3. Here is my code below. var http = require('http'); var Web3 = require('web3'); var Tx = require('ethereumjs-tx'); var abi

Hyperledger Fabric v0.6 using Docker Toolbox

↘锁芯ラ 提交于 2020-01-07 07:09:18
问题 I am using Docker Toolbox on Windows to run Hyperledger Fabric v0.6. Peer and CA has started successfully. When I run the following command : CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:7051 ./chaincode_example02. End up with the error : "Error trying to connect to local peer : grpc : timed out when dialing" I changed 0.0.0.0:7051 to the internal IP of the dockerfile_vp0_1, 172.17.0.3 :7051 but I end up with the same error. I am following the instructions from https://github.com

Getting a list of keys from block 0

自古美人都是妖i 提交于 2020-01-06 05:23:32
问题 Using a local blockchain, is it is possible to use the bitcoin-core rpc commands to query a block (such as the genesis block) and get a list of all the public keys used in that block? If it is possible, which commands do I need to use? 回答1: Not entirely. This is because modern outputs contain addresses (technically scriptPubkeys) which are encoded hashes of a public key, see Types of Transactions. Hashes cannot be reversed (or Bitcoin wouldn't work at all), so in order to reveal the public

BFT and PBFT and BA consensus algorithm

我是研究僧i 提交于 2020-01-05 12:32:53
问题 I've been digging into some of the most used consensus algorithms in permissioned blockchains and I got stuck. I understood that BFT (Byzantine Fault Tolerance) is a property of some algorithms and pBFT is an algorithm itself. Is that right? This rule that 2/3 of the nodes in the network are enough to reach consensus, is it for all BFT algorithms or just pBFT? Also what is the difference between Byzantine Agreement and BFT? If you could provide a reliable source of information, I'd be