31
General Discussion / Re: BTS Governance step 1: Basic stake polling
« on: November 10, 2014, 04:09:23 pm »Hi Xeroc,
Again, thanks for all your brilliant help with this and everything!!
I am using wallet_account_list_public_keys.
It lists 6 different versions of each public key, right?
You said: "you can get the balance ids and addresses", I didn't know these were different. What is the difference, and which one is which, in what wallet_account_list_public_keys provides?
Also roadkill is asking for "something like wallet_sign_bal_hash", which seems to me to be wrong in multiple ways. Number one, you don't want the balance included, as you want thin wallets to be able to perform the validate public keys operation, without needing the blockchain. The balance query need not be verified, only the validation of the public keys. So a voting system must make a single validation query, to a thin wallet, and repeated balance queries, when needed, using validated public keys, in the open, to any client with a block chain, right?
Second, you don't want a specific signing mechanism, do you? You just need an ability to sign any arbitrary hash. And the hash must be of a data set that includes not only the public key, but also include a random UUID generated by the voting system so that people can't re-use the signed block, fraudulently, as other people have pointed out is a problem, right? Isn't there already a generic sign any old hash function out there? That is all you need, right?
And I am interested in first things first. For the first version proof of concept prototype, I am thinking you can get by with people submitting non verified public keys, which we can query balances on in real time, every time we canonize things. Then, once we get that running, we can move on to validating people's keys.
It seems to me this validation of keys process needs a way to enable a voting system, like Canonizer.com, to contact a users wallet (thin or thick), for this validation process to be easy. Would everyone agree? What is the best way to do this? Can you make an RPC or even an http call to a person's thin wallet from a system like Canonizer.com? If so, how would that be done?
I still think blockchain_get_balance is broken (can anyone get this to work, recently?), but you are right, I will move this to the technical support thread.
Brent