Coinprism / android-wallet

A mobile wallet for bitcoins and colored coins
GNU General Public License v3.0
9 stars 24 forks source link

Message signing? #2

Open Masonavic opened 9 years ago

Masonavic commented 9 years ago

Hello,

Is there any plan to implement message signing into either the Coinprism web wallet or mobile wallet? It seem to me that for any realistic implementation of smart property, proving ownership of a given colored coin token would be an essential part of the process. How hard would this be to implement into the android wallet?

Flavien commented 9 years ago

Data embedded in the metadata part of the transaction is signed. This is already how a colored coin is associated to its issuer during issuance.

The mobile wallet doesn't use it because it doesn't do token issuance, which is mostly where it is useful.

Masonavic commented 9 years ago

This isn't exactly what I was talking about. I want to use colored coins for a practical implementation of smart property. As such, I'm building a device (a lock) whose ownership is determined by a colored coin token. Thus, I need a way to prove that I (the user) own the colored coin token corresponding to the lock's ownership.

As far as I know the best way to do this is for the lock to generate a random nonce, and for the user to sign the nonce with the private key corresponding to the address holding the ownership token. Thus I need a colored coin wallet that can sign messages.

This is the same "Sign Message" function that's in blockchain.info or the Bitcoin Core wallet. Do you have any plans to implement this?

Flavien commented 9 years ago

I see what you mean now. This is indeed a good idea, we don't have any immediate plan to implement this, but we'll welcome any pull request.

sudo-ben commented 9 years ago

This is the same as issue 1. You could use the bitID protocol to achieve this.