Skip to main content

Questions tagged [message]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
116 views

Broadcast a valid block to network, without a local full node

Let's say that, through a stroke of luck, a friend has found a valid block on his laptop. Let's say he knows the IP address of a remote Bitcoin Core full node. What message could he send to the node ...
Lee's user avatar
  • 970
0 votes
1 answer
283 views

Verifying the address and the message using the public key, address, and signature!

I'm trying to verify ownership of a Bitcoin address using the public key, signature, and the address (P2PKH, P2SH, P2WPKH, P2WSH, P2TR) as input. However, the code below does not work for Bech32 ...
0xB17C014's user avatar
1 vote
1 answer
58 views

Maximum Number of Hops an Onion Message Can Travel?

According to the specifications: https://github.com/lightning/bolts/blob/master/04-onion-routing.md#onion-messages What's the maximum number of hops an onion message can travel?
Amin Bashiri's user avatar
1 vote
0 answers
46 views

What methods are used to negotiate between nodes about the features they support?

The version number that is exchanged when establishing a connection between nodes only indicates which features are potentially supported by the nodes (a feature that can be negotiated). In order to ...
Cosmos's user avatar
  • 309
0 votes
2 answers
80 views

What is the purpose of version field in version messages exchanged during establishing a connection?

I thought that the version messages that are exchanged when establishing a connection between two nodes and the version field within them indicate what each node supports. Each version supports some ...
Cosmos's user avatar
  • 309
0 votes
1 answer
125 views

Why do we need sendcmpct for getdata(CMPCT) - Low Bandwidth Relaying?

BIP152 explains two types of block announcing: High Bandwidth Relaying (sendcmpct(1)) Low Bandwidth Relaying (sendcmpct(0)) I understand why we need sendcmpct message for the first case. In this way,...
Cosmos's user avatar
  • 309
4 votes
1 answer
107 views

Why are indexes in cmpctblock and getblocktxn messages calculated as differences?

If I want to send transaction indexes in either cmpctblock or getblocktxn messages, they are represented as differences. For example if I want to send indexes 0, 54, 65, 67 and 1236, they are ...
Cosmos's user avatar
  • 309
0 votes
1 answer
46 views

Is index or short transaction ID sent in getblocktxn messages?

Reading BIP152 I see that the Short Transaction ID is used in the cmpctblock message. Depending on whether the transaction is segwit or non-segwit, WTXID or TXID will be used to calculate its Short ...
Cosmos's user avatar
  • 309
0 votes
1 answer
48 views

Are two null bytes appended to the end of the Short Transaction ID?

BIP152 says not to append two null bytes on Short transaction ID, but Bitcoin for developers says to append. Algorithm for calculating Short transaction ID in BIP152 (link): Algorithm for calculating ...
Cosmos's user avatar
  • 309
1 vote
2 answers
453 views

What is an inv message?

I was reviewing the PR #25720. This is part of description for the PR: However, if an INV for a block is received before our headers chain is caught up, we'll then start to sync headers from each ...
Amir reza Riahi's user avatar
7 votes
1 answer
444 views

What is the maximum, realistic P2P message payload size?

In Bitcoin Core, MAX_SIZE defines the maximum valid P2P message payload size to be 32MB. Is it realistic that a peer sends a message payload close to 32MB? What is the maximum, but still realistic ...
0xb10c's user avatar
  • 1,460
1 vote
0 answers
46 views

Connection Reset after sending mempool message

I build a python script to talk to bitcoin test nodes. When I'm sending mempool messages, my connection is getting is reset. Also sometimes when connecting to Jimmy Song's testnet node (testnet....
Bitcoingraffiti's user avatar
3 votes
1 answer
53 views

Can everyone see "message signatures" I create & verify?

I need to sign and verify messages on a couple of addresses, and I need to write my full name and address as message. Is there any concern that anyone can read the message(name and address) other than ...
Driver33221's user avatar
2 votes
0 answers
132 views

Version message C++

I learn bitcoin and I am trying to send a version message and get response, respectevily, by using C++. I can not find any examples or articles how to do it in C++. I'm forming request and send it by ...
recei's user avatar
  • 21
1 vote
1 answer
64 views

Sending "generalized" secret messages over LN using "Lightning messages"

In the Mastering Lightning Network book section 3, it describes the Lightning Network as being "... so much more than the cryptographic protocols on top of the Bitcoin scripting language. It is a ...
bry's user avatar
  • 11
1 vote
1 answer
296 views

I heard a message was encoded into the blockchain, how can I read it?

I have been running a few full Bitcoin nodes for a long while now and I've decided to start learning how to interact with a node to get different information. Recently, Elon Musk's two messages were ...
Pishi's user avatar
  • 13
1 vote
1 answer
218 views

Why is the source code fee calculated higher than the current bitcoin fee amount?

In python bit (https://github.com/ofek/bit/), when sending a message, it is properly 80 bytes or less (https://developer.bitcoin.org/devguide/transactions.html) fee is If it is a 4-byte character ...
ground clown's user avatar
2 votes
1 answer
193 views

I have a 100 character text message and I want to encrypt this message with my bitcoin "PUBLIC KEY" and decrypt it with my private key in Javascript

Are there any javascript libraries that can encrypt a 100 character text message using your bitcoin public key, but only be able to decrypt it with your bitcoin private key? I'm looking to create a ...
Patoshi パトシ's user avatar
0 votes
1 answer
65 views

In Ardor, can you send a message with ZERO ignis balance on a brand new account that has never made a transaction before?

I know bundlers can bundle zero fee transactions, but can an Ardor account that is newly created without ever making a transaction send out a message and have it bundled? Or is this not possible as ...
Patoshi パトシ's user avatar
1 vote
1 answer
45 views

What is the character limit for sending an Ardor message to another account?

I'm sending a message on the Ardor blockchain to another account, but what is the message character limit?
Patoshi パトシ's user avatar
0 votes
0 answers
102 views

What is a simple way to sign a message to verify that you possess the private key for a specific public address?

I need to explain to somebody step by step how to go through the process of signing a message to verify they own the private keys associated with an address containing funds. This is to ensure ...
John Murphy's user avatar
1 vote
1 answer
2k views

How to store arbitrary data in the bitcoin blockchain and how can I differentiate between a transaction an those data?

According to this post, I can store arbitrary data in the blockchain (as the news about "child pornography in the blockchain" tell). Now I want to store "Hello World" in the blockchain. Is there a ...
hardfork's user avatar
  • 2,127
0 votes
1 answer
171 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 ...
Jus12's user avatar
  • 1,365
2 votes
2 answers
615 views

Use bitcoin blockchain as a way to send messages to another address purposely setting a 0 fee or a very low fee?

Having that bitcoin nodes are all over the world. Is it possible to broadcast a transaction sending to 20 different addresses with a piece of the message embedded into each address? The goal is to ...
Patoshi パトシ's user avatar
1 vote
0 answers
39 views

Sending encryped messages using INSaNe. Messages not sending [closed]

I forked INSaNe https://github.com/CryptoCoderz/INSN from github, changed genesis hashes, mined, and sended some coins between two localhost wallets. When i tried to send message from first address to ...
 IT Tech 's user avatar
2 votes
2 answers
265 views

Encrypted message with nLockTime

I know you can delay a transaction's accepted date by using nLockTime. I'm still looking for the simplest way to generate a transaction with nLockTime, but that's another topic. I'm wondering if ...
Nikksno's user avatar
  • 21
2 votes
1 answer
109 views

Is there a difference between relaying a transaction and relaying a block?

I was checking the message types of the Bitcoin protocol and got curious whether there is a difference between relayin a transaction and a block, or not? For example, notfound message say that ...
Önder Gürcan's user avatar
1 vote
1 answer
277 views

How does a BIP70 url look like? I want to send my email to the person I'm sending my coins to.

I'm trying to build an application that takes bitcoin and also an email. But when you send bitcoin you cannot send a message attached to it. Supposedly BIP70 solves this problem. How does a BIP70 URI ...
Patoshi パトシ's user avatar
0 votes
1 answer
244 views

Adding a note or message to payment?

I want to pay for something using bitcoin, using Bitcoin-Qt, and the seller has asked: Please use the order number as the note/message to receiver info. Where do I add this info? Presumably they ...
cantonboy's user avatar
  • 111
2 votes
0 answers
280 views

I need to send a message to the person resposible for a specific wallet

Using Multibit, we sent btc to an incorrect wallet address. We have sent a small amount of BTC to this address before, so it is listed in our wallet's Transaction list, but is unfortunately not ...
Karl's user avatar
  • 21
1 vote
1 answer
1k views

Attaching additional data / text message to a Bitcoin transaction?

I'm building an single page web app, where I need to send the users inputted string (email address) along with their bitcoin payment. Say for example I have a single page web app that issues gift ...
Patoshi パトシ's user avatar
2 votes
2 answers
2k views

Why DARPA wants blockchain based secure messaging system

DARPA (US Defense Advanced Research Projects Agency) has released a Request for Proposal for a Secure Messaging Platform using a blockchain framework. The following is the Objective paragraph from ...
user2065276's user avatar
3 votes
1 answer
412 views

How long does it take to propagate a new broadcasted message in the Bitmessage?

When a message has been signed off, it is propagated to the entire network. I would like to know how long does it take "on average"? There are two types of messages, private messages and broadcast ...
Nur's user avatar
  • 521
0 votes
1 answer
304 views

Using the blockchain for providing other services, besides bitcoin transactions

What I have in mind are proof of existence software, than are a kind a non-centralized and virtual notary service. They time-stamp digital information submitting a hash to the blockchain. I know ...
Juan Almena's user avatar
1 vote
0 answers
86 views

How to access locally stored inventory data?

I'm looking for objects in the source code of Bitcoin Core that record all block inventories distinguished by their miners - Is there a container that keeps track of blocks on chainActive and stores ...
Aliakbar Ahmadi's user avatar
0 votes
0 answers
114 views

Leakage of information about selfish mining - what message is responsible?

A few weeks back I had asked a question about how honest nodes could detect a Selfish Mine Attack and if there were mechanisms that would disclose selfish mining. In a very first step: I've slightly ...
Aliakbar Ahmadi's user avatar
2 votes
2 answers
75 views

Two if's before sending an inventory message

Going through main.cpp I couldn't completely understand the purpose of a double barrier coded as if-statements: I'm referring to ... if (pto->setInventoryKnown.count(inv)) and if (pto->...
Aliakbar Ahmadi's user avatar
1 vote
1 answer
363 views

Block Broadcasting - Unsolicited Block Push

Can someone, please, direct me to the source code section(s) relevant for an Unsolicited Block Push as described in the Bitcoin Developer Guide? I've been going through main.cpp and searched for the ...
Aliakbar Ahmadi's user avatar
3 votes
1 answer
238 views

What is "trickling" in terms of bitcoin?

In the Bitcoin (0.10.0) source code I'm coming across the term "trickle". Could someone please give short but accurate explanations on following instances and tell what they're used for? bool ...
Aliakbar Ahmadi's user avatar
0 votes
1 answer
443 views

Amount of block locator hashes in "getblocks" message

How many block locator hashes are sent in a getblocks message? And how distant are these locator hashes from one another?
Aliakbar Ahmadi's user avatar
3 votes
1 answer
1k views

Where are the Main network magic bytes stored in bitcoin's source code?

Bitcoin uses F9 BE B4 D9 as its main network magic bytes. I've searched the source but cannot find where these values are stored. Presumably they're computed, but I'm not sure where. Can someone tell ...
greatwitenorth's user avatar
3 votes
4 answers
986 views

Wallets that support 40 byte message attachment via OP_RETURN? Desktop / Mobile?

I see that many new Bitcoin 2.0 apps are making use of the additional OP_RETURN parameter for attaching data. I see that max limit is 40 bytes or roughly 40 characters? My question now regarding ...
Patoshi パトシ's user avatar
3 votes
1 answer
352 views

Does the bitcoin URI message parameter have character limits?

Is there a limit to how many characters are allowed in the message parameter of a BIP21 URI? I tried searching on the subject, but found nothing about it.
Anderson Juhasc's user avatar
2 votes
1 answer
1k views

Blockchain transaction message length limit

When I perform a transaction on the blockchain, I can add a message to the transaction, which will then exist forever in the blockchain. Say for example I wanted to use the blockchain to store ...
Matthew Layton's user avatar
1 vote
1 answer
214 views

how to concat our website url in our bit coin transaction in blockchain send api

Hi im using block chain send api in my web application, and it is working fine without any issues. My requirements is when the payment is done thought blockchain send api, is it possible to concat our ...
user17010's user avatar
2 votes
1 answer
179 views

Initial Connection to Bitcoin

If this is the first connection of a new client to the network, I would like to know after the exchange of version & verack messages from both peers, which message is exchanged. I guess every time ...
angel limneos's user avatar
3 votes
1 answer
614 views

GetAddr message structure

My question is if getaddr consists of message header and if it has some payload, possibly an addr_recv and addr_from like version message. Wiki is pretty basic on this spot.
angel limneos's user avatar
4 votes
1 answer
1k views

Inv message structure

I am reading the Bitcoin wiki, and I see the inv message structure. I see it has a counter field for the objects and an inventory field. This inventory field has a list of objects (transactions or ...
angel limneos's user avatar
0 votes
0 answers
37 views

Using a blockchain type system for different purposes [duplicate]

I was wondering, not that I really took the time to investigate much yet but.... Wouldn't it be possible, to do many different things, with the blockchain concept? Maybe i could build a "browser" ...
Tommy Kaira's user avatar
0 votes
1 answer
414 views

Sending getblocks message but not getting inv message response

I am building my own bitcoin client, and I have most of the protocol working from https://en.bitcoin.it/wiki/Protocol_Specification. I successfully make a connection with the version and verack ...
yzernik's user avatar
  • 223