public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: "Martin Habovštiak" <martin.habovstiak@gmail.com>
To: Lloyd Fournier <lloyd.fourn@gmail.com>
Cc: Antoine Poinsot <darosior@protonmail.com>,
	 Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
Subject: Re: [bitcoindev] Hashed keys are actually fully quantum secure
Date: Sun, 30 Mar 2025 22:16:08 +0200	[thread overview]
Message-ID: <CALkkCJb4aJgpgBxrSqSwmCVb3wdnaDJDo7j+w_D7qC0wFpMOOw@mail.gmail.com> (raw)
In-Reply-To: <CAH5Bsr0muoF27besnoQh32vL-keujeR+d-_JurE0+yXY5gPKQg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5187 bytes --]

Indeed, that's what I meant. Even crazy long period like two weeks is still
better than losing everything. I have also assumed RBF and related rules to
stay similar.

Still, a better scheme was proposed already that I was unaware of so far,
thus I withdraw my proposal in favor of that one.

Dňa po 24. 3. 2025, 1:25 Lloyd Fournier <lloyd.fourn@gmail.com> napísal(a):

>
>
> On Tue, 18 Mar 2025 at 00:48, 'Antoine Poinsot' via Bitcoin Development
> Mailing List <bitcoindev@googlegroups.com> wrote:
>
> I suppose you could in theory have, in addition to making spending old
>> outputs invalid on their own, a rule which dictates they may only be spent
>> along with a QR output at least X blocks old. This would give the honest
>> user a headstart in this race, but meh.
>>
>
> Yes this is how I read the OP "after sufficient number of blocks". I think
> this is a really nice idea. The head start can be arbitrarily large so that
> the attacker simply cannot compete. It's probably not too difficult to
> design some honest RBF mechanism either such that you can bump the fee with
> a new QR signature if it's taking too long.
>
> LL
>
>
>
>> On Sunday, March 16th, 2025 at 2:25 PM, Martin Habovštiak <
>> martin.habovstiak@gmail.com> wrote:
>>
>> Hello list,
>>
>> this is somewhat related to Jameson's recent post but different enough to
>> warrant a separate topic.
>>
>> As you have probably heard many times and even think yourself, "hashed
>> keys are not actually secure, because a quantum attacker can just snatch
>> them from mempool". However this is not strictly true.
>>
>> It is possible to implement fully secure recovery if we forbid spending
>> of hashed keys unless done through the following scheme:
>> 0. we assume we have *some* QR signing deployed, it can be done even
>> after QC becomes viable (though not without economic cost)
>> 1. the user obtains a small amount of bitcoin sufficient to pay for fees
>> via external means, held on a QR script
>> 2. the user creates a transaction that, aside from having a usual
>> spendable output also commits to a signature of QR public key. This proves
>> that the user knew the private key even though the public key wasn't
>> revealed yet.
>> 3. after sufficient number of blocks, the user spends both the old and QR
>> output in a single transaction. Spending requires revealing the
>> previously-committed sigature. Spending the old output alone is invalid.
>>
>> This way, the attacker would have to revert the chain to steal which is
>> assumed impossible.
>>
>> The only weakness I see is that (x)pubs would effectively become private
>> keys. However they already kinda are - one needs to protect xpubs for
>> privacy and to avoid the risk of getting marked as "dirty" by some
>> agencies, which can theoretically render them unspendable. And non-x-pubs
>> generally do not leak alone (no reason to reveal them without spending).
>>
>> I think that the mere possibility of this scheme has two important
>> implications:
>> * the need to have "a QR scheme" ready now in case of a QC coming
>> tomorrow is much smaller than previously thought. Yes, doing it too late
>> has the effect of temporarily freezing coins which is costly and we don't
>> want that but it's not nearly as bad as theft
>> * freezing of *these* coins would be both immoral and extremely dangerous
>> for reputation of Bitcoin (no comments on freezing coins with revealed
>> pubkeys, I haven't made my mind yet)
>>
>> If the time comes I'd be happy to run a soft fork that implements this
>> sanely.
>>
>> Cheers
>>
>> Martin
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Bitcoin Development Mailing List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to bitcoindev+unsubscribe@googlegroups.com.
>> To view this discussion visit
>> https://groups.google.com/d/msgid/bitcoindev/CALkkCJY%3Ddv6cZ_HoUNQybF4-byGOjME3Jt2DRr20yZqMmdJUnQ%40mail.gmail.com
>> .
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Bitcoin Development Mailing List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to bitcoindev+unsubscribe@googlegroups.com.
>> To view this discussion visit
>> https://groups.google.com/d/msgid/bitcoindev/XHIL8Z4i4hji8LhbJ0AiKQ4eago2evXwjTGUOqqyAye_2nM3QicDpHo6KkcznBAHPUrIWSLj_GuiTQ_97KPjxcOrG8pE0rgcXucK2-4txKE%3D%40protonmail.com
>> <https://groups.google.com/d/msgid/bitcoindev/XHIL8Z4i4hji8LhbJ0AiKQ4eago2evXwjTGUOqqyAye_2nM3QicDpHo6KkcznBAHPUrIWSLj_GuiTQ_97KPjxcOrG8pE0rgcXucK2-4txKE%3D%40protonmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/CALkkCJb4aJgpgBxrSqSwmCVb3wdnaDJDo7j%2Bw_D7qC0wFpMOOw%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 7545 bytes --]

  reply	other threads:[~2025-03-31  9:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-16 18:25 [bitcoindev] Hashed keys are actually fully quantum secure Martin Habovštiak
2025-03-16 18:50 ` 'Antoine Poinsot' via Bitcoin Development Mailing List
2025-03-18 16:48   ` Erik Aronesty
2025-03-24  0:24   ` Lloyd Fournier
2025-03-30 20:16     ` Martin Habovštiak [this message]
2025-03-16 19:03 ` Agustin Cruz
2025-03-16 20:52   ` Martin Habovštiak
2025-03-17 10:44 ` Lloyd Fournier
2025-03-17 11:07   ` Martin Habovštiak
2025-03-30 15:41 ` David A. Harding
2025-03-30 20:11   ` Martin Habovštiak

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=CALkkCJb4aJgpgBxrSqSwmCVb3wdnaDJDo7j+w_D7qC0wFpMOOw@mail.gmail.com \
    --to=martin.habovstiak@gmail.com \
    --cc=bitcoindev@googlegroups.com \
    --cc=darosior@protonmail.com \
    --cc=lloyd.fourn@gmail.com \
    /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