Bitcoin Forum
May 13, 2024, 03:52:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: where change goes  (Read 1028 times)
kellrobinson (OP)
Sr. Member
****
Offline Offline

Activity: 304
Merit: 380


View Profile
December 28, 2013, 01:59:26 PM
 #1

Different wallets have different ways of dealing with change.  Some send it to randomly generated addresses, others use deterministically generated addresses.  But you don't have to use a wallet.
What if you use the transactions tab on brainwallet.org to spend from an address, where would the change go?  On that page you can enter source and destination, but not change.
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715572365
Hero Member
*
Offline Offline

Posts: 1715572365

View Profile Personal Message (Offline)

Ignore
1715572365
Reply with quote  #2

1715572365
Report to moderator
1715572365
Hero Member
*
Offline Offline

Posts: 1715572365

View Profile Personal Message (Offline)

Ignore
1715572365
Reply with quote  #2

1715572365
Report to moderator
1715572365
Hero Member
*
Offline Offline

Posts: 1715572365

View Profile Personal Message (Offline)

Ignore
1715572365
Reply with quote  #2

1715572365
Report to moderator
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
December 28, 2013, 03:07:00 PM
 #2

It should use your existing address.
There's no requirement for a change address, its only done for privacy.
In armory and blockchain you can use coin control to force it back to source.

kellrobinson (OP)
Sr. Member
****
Offline Offline

Activity: 304
Merit: 380


View Profile
December 28, 2013, 04:46:13 PM
 #3

It should use your existing address.
The way you phrased that doesn't make me supremely confident.
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
December 28, 2013, 04:50:18 PM
 #4

It should use your existing address.
The way you phrased that doesn't make me supremely confident.

It's the only explanation. Change can't disappear so it must go back to original address since they Don't ask for one.

bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
December 28, 2013, 04:52:50 PM
 #5

I highly suggest making a watch only blockchain account tho and using a custom send. It will then ask for private key

Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
December 28, 2013, 05:08:49 PM
 #6

The difference between total input value and total output value is used as miner-fee. If you construct a raw transaction that only spends part of the funds, you may end up paying a rather large fee to the miners as there is nothing in the Bitcoin protocol that forces change to be paid back.

So be careful when using third-party tools to craft transactions.
kellrobinson (OP)
Sr. Member
****
Offline Offline

Activity: 304
Merit: 380


View Profile
December 28, 2013, 05:23:50 PM
 #7

The difference between total input value and total output value is used as miner-fee.
^^^This.
At some point I might do a test transaction, and leave about .001 btc on the table to see what happens.
Supposing the change goes as a mining fee, would that fact be recorded on the blockchain in such a way that it's visible if I check the transaction with a tool like blockchain.info or blockexplorer?
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
December 28, 2013, 05:25:13 PM
 #8

I HIGHLY doubt brain wallet destroys your change

DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
December 29, 2013, 01:39:17 AM
Last edit: December 29, 2013, 04:40:36 PM by DannyHamilton
 #9

This thread is using words incorrectly and therefore causing confusion.

There is no such thing as "change" at the transaction level of bitcoin.

Transactions have 2 parts when it comes to the transfer of value:

  • Inputs
  • Outputs

When creating a transaction, no matter whether it is a wallet creating it, or brainwallet.org, or you write your own program to create a raw transaction, the thing that creates the transaction specifies inputs to supply value to the transaction, and then specifies outputs to encumber that value with requirements.

"Change" is a word we use for any output that is "sent back to the sender".

If you specify input values that exceed the specified output values, then the difference will ALWAYS be a transaction fee.  There is no other way to specify a transaction fee.  This is the definition of a transaction fee.

So, if the OP is specifically asking about brainwallet.org (and not some other non-wallet method of creating a transaction), then the answer is:

EDIT:  As of 2013 December 29, there is a bug in the brainwallet.org design (see post from Abdussamad below).  If you are not aware of this bug and how to avoid it, then you should not be using brainwallet.org to create bitcoin transactions.


brainwallet.org creates an additional output sending any additional value that is not accounted for in the specified outputs and specified transaction fee back to the "Source Address".

You can see this by looking at the JSON Transaction, without having to even transmit the transaction.
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
December 29, 2013, 04:35:01 PM
 #10

I HIGHLY doubt brain wallet destroys your change

It has a UI bug that causes exorbitant transaction fees to be paid out instead of sending change back to the origin address:

https://bitcointalk.org/index.php?topic=372725.msg3987470#msg3987470

Bottom line if you are going to construct raw transactions you'd better know what you are doing!
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
December 29, 2013, 04:37:58 PM
 #11

I HIGHLY doubt brain wallet destroys your change

It has a UI bug that causes exorbitant transaction fees to be paid out instead of sending change back to the origin address:

https://bitcointalk.org/index.php?topic=372725.msg3987470#msg3987470

Bottom line if you are going to construct raw transactions you'd better know what you are doing!

Interesting.

Hopefully the creator of brainwallet.org will fix this bug soon.  In the meantime, it is probably a good idea not to use brainwallet.org to create transactions unless you are aware of this bug and how to avoid it.
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
December 29, 2013, 05:02:17 PM
 #12

Stick to blockchain watch only

Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
December 29, 2013, 05:59:47 PM
 #13

BTW Danny you kinda got the date wrong in your big red warning. That bug has been around for at least two weeks.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
December 29, 2013, 06:06:08 PM
 #14

BTW Danny you kinda got the date wrong in your big red warning. That bug has been around for at least two weeks.

Certainly, but it may not be around two weeks from now (when someone may come across this post and think, "No, such a bug does not exist?"

As such, my post is pointing out that as of today, the bug still exists, but in the future you should determine for yourself whether or not it has been fixed before deciding to use brainwallet.org to create a transaction.

Obviously it is too late to decide not to use brainwallet.org in the past.
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
December 29, 2013, 09:24:34 PM
 #15

LOL I brought it up and he got a little annoyed but fixed it nevertheless:

https://github.com/brainwallet/brainwallet.github.com/issues/41

Still wouldn't recommend using this site though.
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
December 30, 2013, 02:35:39 AM
 #16

Never use brain wallet

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!