From: Brian Deery <brian@factom.org>
To: bitcoin-development@lists.sourceforge.net
Cc: Justus Ranvier <justus.ranvier@monetas.net>
Subject: Re: [Bitcoin-development] Reusable payment codes
Date: Mon, 27 Apr 2015 09:53:59 -0500 [thread overview]
Message-ID: <CAFjbNjFqj8OQS7PVd_yP7PCj68_jto=r-mT9gKXHsFRviBDt-A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2866 bytes --]
Hi Justus:
CC'ing mailing list because more bloom filter and HD wallet experts there
can chime in for some of these thoughts. I refined some ideas we went over
earlier.
Here are some critiques/worries about the payment codes.
With identities explicitly tied to a payment code, bloom filter clients can
have identities tied to them.
1. There will be a 1:1 relationship between a payment code owner and their
identity. Presumably the payment code would be strongly and publicly tied
to the identity. This makes the notification address strongly tied to the
user. An SPV client connecting to a full node who has a list of
notification address can tie an identity to a bloom filter and connecting
IP.
2. The client can use a bloom filter with a higher false positive rate. An
active attacker can counter that by sending several payment codes to an
individual user. The user would then add to their bloom filter all the
shared addresses between them and the attacker. Even with a high false
positive filter, always matching all the attacker's payment codes would
strongly tie the user to the filter.
Here are some data savings and privacy addition ideas:
65 bytes -> 0 bytes extra.
1. Can you choose only even or odd DER encoding? That would save you 1
byte. This would probably throw out 50% of possible addresses though.
2. Can the chain code be fixed or derived from the x value? Could the
chain value be the x value itself? (The main question is can a
deterministic public seed be represented as a single 32 bit number? Maybe
the chain code can be a constant. Maybe it is ok since subsequent pubkeys
are derived from this. I only know enough crypto to be dangerous.) That
would save you 32 bytes. Someone who understands HD wallets would be
better to look at this one. it would probably be a non-standard derivation.
That leaves you with 32 bytes to communicate to bootstrap the channel.
3: Since you are already looking at the pubkey of the transaction sending
the notification transaction, then you are assuming control of the sending
mechanism. If you can be sure to use a disposable bitcoin address to send
the notification, then 1 more savings might be possible. Also assuming the
above two points are possible.
Can you encode the "x value" into the signature's R value? This would
basically make this transaction look like a standard bitcoin transaction
and gets rid of the op_return completely.
I still like the idea of a common meeting point, a la bitmessage. The
receiver of the payment code would trial-decode all payment codes sent to a
common pre-specified dead drop address (perhaps a charity address). "to
send me money, first donate to this charity of my choice." This trades off
more work on the receivers part to get some privacy as to the number of
people interacting with that receiver.
-cheers
-Brian Deery
[-- Attachment #2: Type: text/html, Size: 3364 bytes --]
next reply other threads:[~2015-04-27 15:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 14:53 Brian Deery [this message]
2015-04-27 15:54 ` [Bitcoin-development] Reusable payment codes Justus Ranvier
2015-04-27 16:46 ` Mike Hearn
2015-04-27 17:02 ` Justus Ranvier
2015-04-28 13:53 ` Justus Ranvier
2015-04-29 23:44 ` Justus Ranvier
-- strict thread matches above, loose matches on Subject: below --
2015-04-24 20:00 Justus Ranvier
2015-04-24 20:58 ` Gregory Maxwell
2015-06-16 16:26 ` odinn
2015-06-16 17:46 ` Peter Todd
2015-06-17 5:34 ` odinn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFjbNjFqj8OQS7PVd_yP7PCj68_jto=r-mT9gKXHsFRviBDt-A@mail.gmail.com' \
--to=brian@factom.org \
--cc=bitcoin-development@lists.sourceforge.net \
--cc=justus.ranvier@monetas.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox