Bitcoin Forum
August 31, 2024, 12:17:06 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Alternative payment scheme  (Read 2638 times)
shesek (OP)
Newbie
*
Offline Offline

Activity: 27
Merit: 4


View Profile
January 02, 2014, 03:39:14 PM
Last edit: January 03, 2014, 03:51:08 PM by shesek
 #1

I had an idea for a payment scheme that uses key derivation, but instead of the payee deriving the addresses, the payer would do it.

It would work like that:
  • The payee publishes his master public key
  • The payer generates a random "receipt number" (say, 25 random bytes)
  • The payer derives an address from the master public key using the receipt number and pays to it
  • The payer sends the receipt to the payee
  • The payee derives a private key with that receipt and adds it to his wallet

Advantages:
  • It increases privacy by avoiding address reuse
  • The process is asynchronous. The payee is completely passive in the payment process and isn't required to provide new addresses before each payment (no payment server required)
  • Its usable as a replacement for cases where re-used addresses are the most viable solution (like putting an address in a forum signature or as a development fund in a github readme)
  • The receipt also acts as a proof of payment that the payer can provide to the payee
  • Also, if the master is known to belong to someone, this also allows the payer prove to a third-party that the payment was made to that someone. If the output was spent, it also proves that he was aware of the payment and has the receipt.
  • Its a really thin abstraction layer and doesn't require any protocol changes

Disadvantages:
  • Losing the receipt numbers means losing access to your funds, they are random and there's no way to restore them
  • It requires sending the receipt to the payee somehow. Email could work for that, but a better defined channel that also can talk to the Bitcoin client and add the receipt would be much better.

What do you think?
oleganza
Full Member
***
Offline Offline

Activity: 200
Merit: 104


Software design and user experience.


View Profile WWW
January 02, 2014, 04:16:57 PM
 #2

How does it increase privacy compared to payee generating new address for every payment? If you see that payee reuses the address for your payments, what's cheaper for payee: to start generating new addresses or adopting more complex scheme involved receiving some data from the payer (instead of just observing the blockchain)?

Bitcoin analytics: blog.oleganza.com / 1TipsuQ7CSqfQsjA9KU5jarSB1AnrVLLo
shesek (OP)
Newbie
*
Offline Offline

Activity: 27
Merit: 4


View Profile
January 02, 2014, 04:33:42 PM
 #3

How does it increase privacy compared to payee generating new address for every payment? If you see that payee reuses the address for your payments, what's cheaper for payee: to start generating new addresses or adopting more complex scheme involved receiving some data from the payer (instead of just observing the blockchain)?

The main advantage is that the payee doesn't have to be active and provide addresses every time someone wants to make a payment. The payer can independently and without any action from the payee create an address and make the payment. As I wrote above, this makes it easier for cases like an open source project development fund, where people can just send payments without talking with the payee first.
ffe
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
January 05, 2014, 06:49:34 AM
 #4

Its a really thin abstraction layer and doesn't require any protocol changes

It does require the payee to publish his full public key. That is not common practice today. Bitcoin receive addresses are hashes of public keys and can't be used to derive related keys.

Nice idea, though. See this related topic:

This added note is to show how Alice allows a server fronting her business to verify that she owns a blinded transaction without requiring the server to have her secret key thus protecting her wallet if the server is hacked.

It’s done this way:

Alice generates a secondary key used to verify blinded transactions from her master key. Her private key is “a”. She generates a verifier private part “b” by hashing “a”,  b = Hash(a). Let the public part of “a” be “A” and the public part of “b” be “B”.   A = aQ and B = bQ. The doublet “A,B” is published as the blind transaction enabling public key. “A,B” and the private verifier “b” are given to the server she is using to manage monitoring the block chain for her. With “b” the server can verify transaction ownership but not spend. Hacking the server does not give you “a”.

A sender would recognize “A,B” as a blindable key. The sender then generates "X" as follows:  s = Hash(m,yB);  X = sA. The sender sends coin to “X”.

A server holding verifier "b" can check every new transaction for the property that s = Hash(m,bY) and X = sA to know to add the coins to the balance in Alice’s wallet. (Note yB = bY). Notice that the server does not need “a” to verify the transaction. The server can verify “X” but cannot generate the private part of “X”.

Alice later generates "x", the private part of "X", as follows:  She is given m and Y from the transaction; then  s = Hash(m,bY);  x = sa (modulo a large prime determined by the ECC);  She can check that X = xQ. Alice can now sign a prepared transaction using “x” and publish the signed transaction when spending.
grau
Hero Member
*****
Offline Offline

Activity: 836
Merit: 1030


bits of proof


View Profile WWW
January 05, 2014, 10:24:24 AM
 #5

The idea is incomplete without a solution for key revoke by the payee, since payee's private key might be compromised.
Once you add that aspect you are likely back to a protocol where payee provides payment address.
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!