Bitcoin Forum
April 19, 2024, 04:07:35 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin "From" address, can i change it?  (Read 4062 times)
JollyGreen (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 05, 2011, 02:49:17 AM
 #1

Hi All,

I was sending BTC to different friends, just playing around with the GUI and realized it doesn't seem I have control over which "from" address is used in a Send transaction.  Is this true?

Does anyone know how bitcoin determines which "from" address to assign to a send transaction?

JG
1713542855
Hero Member
*
Offline Offline

Posts: 1713542855

View Profile Personal Message (Offline)

Ignore
1713542855
Reply with quote  #2

1713542855
Report to moderator
1713542855
Hero Member
*
Offline Offline

Posts: 1713542855

View Profile Personal Message (Offline)

Ignore
1713542855
Reply with quote  #2

1713542855
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713542855
Hero Member
*
Offline Offline

Posts: 1713542855

View Profile Personal Message (Offline)

Ignore
1713542855
Reply with quote  #2

1713542855
Report to moderator
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
March 05, 2011, 05:21:54 AM
 #2

You can't choose your "from" addresses in the official client. Even if there was an option for this, it would still only be possible to send from an address that has an unspent transaction belonging to it.

Unspent transactions are called "coins". You can only redeem full coins, so if you don't have a batch of coins that can be evenly combined into the desired send value, you need to send yourself some change. Bitcoin tries to choose a set of coins that fits the desired send value closely, minimizing change.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
March 05, 2011, 07:32:55 AM
 #3

For bookkeeping you can use accounts and RPC "sendfrom", and Bitcoin will keep track of individual account balances. If you sendfrom an account and its balance is too low, the transaction will fail and you'll have to "move" funds from some other account. This is all artificial, though -- "sendfrom" doesn't actually try to send from account-owned addresses.

Being able to choose coins would be useful, especially for anonymity reasons.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
March 05, 2011, 07:44:18 AM
 #4

Are "accounts" and "sendfrom" features of the bitcoind daemon?

Yes.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
So_Cynical
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
March 05, 2011, 11:13:10 AM
 #5

So if i had 3 people send me 50 BTC each at the same time...i cant tell which 50 came from which person.?
N12
Donator
Legendary
*
Offline Offline

Activity: 1610
Merit: 1010



View Profile
March 05, 2011, 11:14:48 AM
 #6

So if i had 3 people send me 50 BTC each at the same time...i cant tell which 50 came from which person.?
You should create a new address for everything and name it. This way you’ll know and gain some anonymity.
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
March 05, 2011, 02:52:06 PM
 #7

Seems like it would be useful if the GUI client had an option similar to the bitcoind "sendfrom" functionality.  Do you think this would be impossible to try and get into the client?  Am I just wasting my time? Smiley  I'm willing to do the work and write some code for review, but I don't want to go down that road if it's something everyone would basically vote down at review time.

I wouldn't have any objections to changes that let you decide which input transactions or receiving addresses to choose when sending coins, as long as it is well-tested, follows the coding guildelines (see coding.txt in the source directory)  and it doesn't make the "I just want to send some coins" case look more complicated (maybe hide it behind an Advanced... button in the Send dialog).


How often do you get the chance to work on a potentially world-changing project?
N12
Donator
Legendary
*
Offline Offline

Activity: 1610
Merit: 1010



View Profile
March 05, 2011, 03:16:28 PM
 #8

Sounds good, vladimir. A key could be very well used as a form of authentification instead of an email. The advantage would be that you can create keys much more easily and faster than emails, plus you have a better overview.
Hal
VIP
Sr. Member
*
expert
Offline Offline

Activity: 314
Merit: 3853



View Profile
March 05, 2011, 07:28:03 PM
 #9

Bitcoin's behind-the-scenes address handling makes things a little complicated. Say you received 2 payments of 50 to your empty wallet. Then you made 2 payments of 30. Now you will have 2 addresses worth 20, both addresses you've never seen before and which don't show up in the transaction list. These received the "change" from the 30 payments.

These addresses don't reveal which 50 payment they came from. To see that you'd have to provide some new mechanisms. Maybe show the transaction history behind each address. Maybe show change addresses in the main window. Maybe bring in the account features and tag transactions with accounts.

It's not as simple/useful as it seems.

Hal Finney
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1128


View Profile
March 05, 2011, 07:56:01 PM
 #10

The client defaults to assuming you want privacy. There's no technical reason you can't use one address over and over again like a bank account number. However that makes all your transactions easily correlatable.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
March 05, 2011, 07:58:42 PM
 #11

For average users, using just one address per account would solve a lot of problems. Backups would be much easier.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1128


View Profile
March 05, 2011, 08:04:49 PM
 #12

For the hypothetical Android client I have yet to build I was going to create a Chrome-like Incognito mode. In this mode all privacy related changes (like maybe using tor automatically) would be bundled together. It could even send coins via a mixer service, if/when such a thing exists.
Hal
VIP
Sr. Member
*
expert
Offline Offline

Activity: 314
Merit: 3853



View Profile
March 12, 2011, 08:38:24 PM
 #13

Here's how I would approach this idea. The concept would be to function in max-anonymity mode by default as now, but to also specify a certain address as being associated with an identity. Receiving coins to that address is trivial, just give out that address for payment. Add a feature to make identified payments from that address as you propose. Important, payments from that address should use that same address for change. Equally important, make sure that regular "anonymous" payments DO NOT use the identified address, otherwise your anonymity will be compromised. That way, anonymous and identified payments can coexist.

You could also have more than one identified address, keeping each separate. Probably you'd want to use the address label to choose which to pay with. But the same principles would apply: change back to the same address, and never use it for regular payments.

As far as getting started, I'd like to see a sticky walking through the steps to create a pull request. But yeah, you can check out from sourceforge using svn, get your changes working, and post the output of svn diff as a patch.

Hal Finney
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
March 13, 2011, 12:19:24 AM
 #14

As far as getting started, I'd like to see a sticky walking through the steps to create a pull request. But yeah, you can check out from sourceforge using svn, get your changes working, and post the output of svn diff as a patch.

Sticky for creating a pull request:  good idea.

JollyGreen: if you know, or are willing to learn, git then working from the git repo ( https://github.com/bitcoin/bitcoin )is smoother.  github has built-in support for turning a development branch into a pull request.

How often do you get the chance to work on a potentially world-changing project?
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!