Author

Topic: accounts should be able to work like mini wallets. (Read 557 times)

hero member
Activity: 826
Merit: 500
the account concept is indeed very confusing. it leads to dev mistakes.
newbie
Activity: 10
Merit: 0
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.



Jump to: