Bitcoin Forum

Other => Beginners & Help => Topic started by: jquiroga on October 04, 2012, 02:44:55 PM



Title: accounts should be able to work like mini wallets.
Post by: jquiroga on October 04, 2012, 02:44:55 PM
accounts should be able to work like mini wallets to reflect an the accurate state of the network with respect to your accounts.

Meaning:
Wallets are like sets of pair of keys (addresses and their respective private keys).
Accounts are like sets of pair of keys (addresses and their respective private keys).

Yet, when you do a

sendtoaddress, the software uses only your keys in your wallet (that is obvious since the software can only use the private keys in your wallet), but when you do a

sendfrom, the software may use any key in your wallet to sign. the software should be configurable to only use the private keys associated with the addresses in that given account, just like a mini wallet.

And when you do a,

getbalance *, the software calculates the wallet balance given the amounts that have been signed to any of the addresses of your wallet and the amounts that the private keys in your wallet have been used to sign to other addresses not in your wallet. But when you do a,

getbalance 'account', the software does NOT calculate the account balance given the amounts that have been signed to any of the addresses of that account and the amounts that the private keys in that account (the ones associated with the addresses in your account) have been used to sign to other addresses not in that account. Not like a mini wallet.

In this scenario in which accounts are like mini wallets (configurable one so that accounts can also be used to local accounting like they do now) the 'move' from one account to an other should not be permitted.





Title: Re: accounts should be able to work like mini wallets.
Post by: hamdi on October 05, 2012, 01:37:54 AM
the account concept is indeed very confusing. it leads to dev mistakes.