Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [protocol]

This tag should be used for questions relating to the protocols by which cryptocurrencies are transferred. This includes the network protocol and consensus rules.

0
votes
0answers
29 views

Can't get broadcasted block inventories

I am writing a bitcoin client which interacts with nodes on the network. I am currently doing the handshake and I receive "inv" messages with transaction hashes out of the box. However I am not ...
4
votes
1answer
352 views

Why was an insecure merkle tree implementation chosen?

At risk of creating a "lets discuss politics" question, let me clarify that what I want to know is whether there is a known benefit to Satoshi's "duplicate the last hash" merkle tree implementation ...
1
vote
3answers
49 views

Block Validation: who does it? How much it costs? And is it present in all protocols?

Different threads were posted in order to clear up this question, but there are some points that I would need to confirm: When you become a full-node (NOT miner, you just downloaded the full ...
1
vote
0answers
24 views

What is the behavior of the try catch statement in lines 1707-1729 in the ui.cpp in the release 0.1?

In the first public release, ui.cpp has this code on the lines in the subject: void CSendingDialog::OnReply3(CDataStream& vRecv) { int nRet; try { vRecv >> nRet; ...
2
votes
1answer
16 views

Can miner pay transaction fee with coinbase (if maturity is disabled)?

If I understand correctly, the first transaction in a block may collect transaction fees (difference between inputs and outputs) from the following transactions in the same block; and subsequent ...
1
vote
2answers
54 views

How is subscript computed for OP_CHECKMULTISIG?

I'm trying to learn the Bitcoin protocol by implementing it, and I've got OP_CHECKSIG working (following instructions in https://en.bitcoin.it/wiki/OP_CHECKSIG), but I can't get an transaction input ...
0
votes
1answer
23 views

Why can I observe three different network difficulties in a span of a few days?

https://www.blockchain.com/charts/difficulty If I study the difficulty changes the last 6 months, I can see, as would be expected, that roughly every two weeks, the network makes an appropriate ...
1
vote
0answers
26 views

Exchange development good practices

Is there any guide or good practice rules to follow when developing a service that uses the Bitcoin and other cryptocurrencies protocols? For instance, how is the best way to know if a user deposited ...
1
vote
0answers
44 views

Why is the Serialization limit set to 0x02000000?

In addition to the block size limit, there is a limit on the maximum message size. Is there a rationale behind the 32MB limit set in src/serialize.h or was it picked because it's just a nice round ...
0
votes
1answer
41 views

History of ideas behind a bitcoin protocol [closed]

Could you outline the logical sequence of main ideas (concepts) that contributed to the evolution of the bitcoin protocol from the beginning to now?
1
vote
2answers
58 views

What are protocols in Crypto? What are token protocols?

I understand how Consensus protocols work. They are essentially rules that nodes follow in order to validate transactions and blocks. It seems as if all tokens are their own protocols. So what are ...
0
votes
0answers
35 views

Can't get response on “tx” message

I'm trying to write a code to send bitcoin transaction. I've found an example of python code. With few modifications it's here import time import socket import struct import random import hashlib ...
1
vote
0answers
227 views

BFT VS Bitcoin PoW VS PBFT

I've been studying consensus algorithms and kind of got stuck. if you check out Neo's explanations on its consensus algorithm, it says "Numerous protocols have been developed to solve the Byzantine ...
0
votes
1answer
35 views

How are mined blocks broadcasted in a distributed environment?

I understand that after the golden nonce is found by the miner he broadcasts the block and the other miners verify it. But I don't understand how they broadcast it because bitcoin is completely ...
1
vote
1answer
38 views

Is it possible for the government to censor bitcoin by blocking ports?

I am not very clear about the detailed aspect of the ports. My concern is, is it possible for the ISPs to block these ports of bitcoin clients and therefore censor bitcoin, even if the internet is ...
0
votes
1answer
37 views

What is the purpose of addr_from and addr_recv in version message?

I understand from this answer the semantics of addr_from and addr_recv. It is not clear to me though what is their purpose. Don't we assume that the transport layer protocol takes care of, well, ...
0
votes
0answers
19 views

Is a miner required to collect fees? [duplicate]

It is required for a miner to collect the fees in the coinbase transaction? e.g. The coinbase transaction includes the block reward only. I remember vaguely that it has happened and I am searching ...
0
votes
0answers
14 views

Would you explain more about the nomination and ballot protocol

I still can't understand about the nomination and ballot protocol after reading the white paper. Could you explain them more easily? Or where can I find more information about them? Thank you.
0
votes
0answers
20 views

( Help i cant recover my bitcoin QT wallet with my passphrase )

Hello im having some trouble to recover my bitcoin QT wallet with my passphrase :-( after i made this steps below how should i rite this info? first i do this steps below launch your bitcoin client ...
0
votes
1answer
52 views

Is it likely that bitcoin will implement important changes in the future? [closed]

Bitcoin is still the biggest cryptocurrency in terms of market cap, and it will always be the first one to solve some of the most fundamental problems around the implementation of a cryptographic coin....
2
votes
5answers
217 views

Who is responsible for ensuring that the bitcoin protocol is not violated in the network? [closed]

Who is responsible for ensuring that the bitcoin protocol is not violated in the network? The market forces behind the supply and demand of bitcoin Miners Consensus of the miners Developers of the ...
0
votes
2answers
3k views

How do I know if I have ever registered a bitcoin account? [closed]

Just wondering how I could check to see if I own any bitcoins. How can you do this? I'm retired military and just returned from overseas contracting in Afghanistan. Thanks.
1
vote
0answers
60 views

How can I use raw litecoin protocol to connect to nodes?

I am trying to connect to litecoin nodes using raw protocol. I follow Ken Shirriff instructions from this article . My code works perfect with bitcoin, so I just replaced bitcoin nodes connection ...
0
votes
1answer
137 views

Complete definition of 'tx_witness' data structure used in 'tx' data structure

I'm reading the Protocol Documentation page for the 'tx' data structure and cannot find a completely clear definition of the 'tx_witness' data structure. After the 'tx_out' table, there is short ...
0
votes
0answers
11 views

Is there a comprehensive reference for the protocols and transaction/data formats of altcoins?

Is there a comprehensive reference like the bitcoin protocol wiki page for various altcoins, or even pre-written software that can parse transactions and messages for a large number of altcoins? I'm ...
0
votes
1answer
52 views

Do any altcoins use a DHT for connecting to peers?

Bitcoin doesn't use a DHT for connecting to peers. Are there any altcoins that do?
0
votes
1answer
70 views

Does bitcoind send message headers and payload separately in P2P protocol?

I am connecting to my local bitcoind using TCP and observed the following behavior: I see many messages where only header is given or only part of the payload is attached. Of course, it could be a ...
1
vote
1answer
144 views

Unbreakablecoin - Block Height Stopped Moving

I am running a full Unbreakablecoin (a Bitcoin clone) node. Blocks were being generated every few minutes or so, until about a week ago. Now, the block height has been stuck at 82666 for multiple ...
1
vote
4answers
105 views

Use of proof of work in bitcoin

I am trying to understand what problem in bitcoin proof of work solves and came to this somewhat helpful quote: So, for instance, if a miner controls one percent of the computing power being used ...
19
votes
3answers
5k views

How is bitcoin transactions and the blockchain as a whole transferred over the internet?

So I have several specific question connected to this topic and I'm aware of the conceptual answers and I'm only interested in the technical details (with programming terms and concepts as I'm a ...
0
votes
1answer
293 views

Ripple's validation of transactions / Ripple white paper?

Is there a ripple white paper or some safe source to understand how the transactions are validated and made in the ripple network? VS Bitcoin, XRP is not mined, so how is the agreement reached? (I ...
0
votes
0answers
106 views

Bitcoin sent from one wallet to another didn't reach

looking for some help and advice here. I sent 2.27 BTC from one exchange (Coinsecure) to another (Koinex). However, the receiving exchange (Koinex) only credited 0.327 to my wallet. I have been ...
2
votes
2answers
286 views

Would writing one's own cryptocurrency in a language other than C/C++ be stupid?

I'm curious from a performance perspective if writing a cryptocurrency from the ground up in a language other than C/C++ be stupid? For example, if I wanted to write a cryptocurrency and protocol in ...
0
votes
0answers
133 views

Is there any difference between CompactSize and VarInt?

Is there any difference between CompactSize and var_int? In https://en.bitcoin.it/wiki/Protocol_documentation both redirects to Variable length integer. I am confused to why there are two names for ...
1
vote
0answers
90 views

bitcoind > 0.9 - unexpected end of data - handling of arbitrary data in tx - UPDATE

I'm working on a pretty old blockchain here which was based on codebase 0.9 and never updated since. Now getting that stuff to a proper codebase, I'm facing following situation on initial block ...
1
vote
1answer
246 views

Who can change the code governing how much of BTC is released?

I understand that BTC's will be continually released by the year 2040, when it will reach 21M coins. Actual numbers don't really matter, but I'm interested in who has the power to change this rule. Is ...
3
votes
2answers
379 views

How does the Bitcoin network deal with bad actors?

Can someone explain at a high level how the network deals with bad actors (either intentionally (ie- attacker) or unintentional (ie- misconfigured node or a node running outdated code, forked code, ...
4
votes
2answers
90 views

How do fees get processed in bitcoin? (protocol question)

If the fee isn’t written into the ledger, and it’s just the difference between the input transaction amount and the output transaction amount, how does the miner prove he has access in his wallet to ...
0
votes
0answers
51 views

How is a version of Bitcoin marked as 'obsolete'

I'm compiling a pre-release version of a Bitcoin based altcoin. I get a temporary connection to a current version fullnode of my own, but the connection is then rejected. When I look in the debug....
0
votes
2answers
217 views

At which point and how does the miner who successfully solved hash get coins? [duplicate]

When miner creates a valid block he broadcasts that to the network. It can happen that someone else did the same. So we have half nodes think that chain+A is correct, and other half that it is chain+...
1
vote
1answer
98 views

Why are transactions grouped into blocks? (how are new blocks-to-solve formed)

Why are transactions grouped into blocks when put onto blockchain (PART 1)? Lets say we have just put a block on a chain and there are no blocks at the moment that users mine. At that moment how many ...
1
vote
1answer
330 views

Merkle Root for 1-transaction block!

I know that merkle hash for one transaction tx is: sha256(sha256(tx)) In this block: https://blockchain.info/block/000000000000000001291219dde8ed705903e8c101f416c68a439e5171ede5bc there is only one ...
1
vote
1answer
53 views

With the rise and fall in value of bitcoins, how do I store them once I've accummulated enough

With the rise and fall in value of bitcoins, how do I accumulate the value so that I don't continue to lose them?
0
votes
0answers
588 views

How To Calculate Merkle Root?

I found this example: Current merkle hash list: 32650049a0418e4380db0af81788635d8b65424d397170b8499cdc28c4d27006 30861db96905c8dc8b99398ca1cd5bd5b84ac3264a4e1b3e65afa1bcee7540c4 Current merkle ...
0
votes
1answer
308 views

Finding new Block

I need to know how miners try to find the next block hash... First, they choose list of transactions to be included in the block, calculate [Merkle Root], set current Timestamp, then start Nonce=1 and ...
2
votes
1answer
284 views

What prevents a transaction being added to the block chain twice?

As I understand it, a transaction basically consists of a from address, to address, amount and some component that verifies that the owner of the from_address has requested the transaction. A ...
1
vote
1answer
67 views

Is it possible to block bitcoin signal?

I heard that china gonna block bitcoin signal and shut down all the miners. Is it possible? if possible is there any way to bypass it?Will Core release new update to prevent this?
2
votes
2answers
1k views

What happens to a transaction once generated?

I'm trying to understand how bitcoin works technically. I understand the blockchain, digital signatures etc ... I'm more interested in what happens to a transaction once it's "created". Suppose ...
2
votes
1answer
51 views

Properties of Bitcoin as an Electronic Cash System

I am studying the concept of Electronic Cash, and in several reference I found that the criteria describing the ideal electronic cash system are as follows: Independence: The security of electronic ...
1
vote
2answers
158 views

local bitcoin nodes in a same vlan cannot sync

I have two local bitcoin nodes, node1(192.168.105) and node2(192.168.1.101). Firstly, I start node1 to connect the bitcoin network to download some blocks. Then I delete the static dns seeds in file ...