Bitcoin Development Mailinglist
 help / color / mirror / Atom feed
From: "'Sjors Provoost' via Bitcoin Development Mailing List" <bitcoindev@googlegroups.com>
To: Connor Avila <connoravila@gmail.com>
Cc: bitcoindev@googlegroups.com
Subject: Re: [bitcoindev] Draft BIPs: anti-exfil signing for BIP340 and ECDSA, with PSBT fields
Date: Mon, 30 Nov 2026 17:07:36 +0100	[thread overview]
Message-ID: <9D731279-6920-44D4-A823-40FDA7C6A338@sprovoost.nl> (raw)
In-Reply-To: <CAOuFX60em-d=JW+FmQe6G6mP58Gs6kpwuRwVLC5nwT8oO9HsXg@mail.gmail.com>

Hi Connor,

Coincidentally I was working on the same thing, as you mentioned. It was
a purely vibe coded spec and implementation, but it nevertheless may be
useful to fully understand what needs to change from the BIP text, through
Bitcoin Core, HWI (or alternative) and the device firmwares.

My agent has now reconciled all that with your design:
https://git.sprovoost.nl/bips/prs/0bcca94b
(description links to the other pull requests)

Note that I didn't implement ECDSA support at all. I'm fine with it be
allowed by the spec, as long as it's optional and I don't have to even think
about it :-)

The other changes should be minor. They may be useful, but should be
taken with a grain (token?) of salt.

- Sjors

P.S. I mirrored a bunch of repositories on that domain. No nostr tooling is required for read access, e.g. for Bitcoin Core:

git clone https://git.sprovoost.nl/npub1v25jqj332n630klwtqeqxgyrjl4alw4phmluhu2x6lcxzwy9m03suqexw3/bitcoin.git

> Op 5 nov 2026, om 22:08 heeft Connor Avila <connoravila@gmail.com> het volgende geschreven:
> 
> Hi all,
> 
> A signing device picks the nonce in every signature, so a compromised
> one can leak its seed through signatures that look normal. Anti-exfil
> fixes this by having the host contribute to each nonce and check the
> result. Devices already ship versions of it, but there's no agreed
> specification and no standard PSBT field for it.
> 
> I've written two draft BIPs. One covers the protocol for BIP340 and
> ECDSA, including what a host does when a device fails. The other adds
> three PSBT input fields. The protocol follows Scheme 6 from Pieter
> Wuille's 2020 overview, with a sign-to-contract tweak.
> 
> Sjors Provoost published an experimental draft in October for
> single-signer Taproot key-path signing, with implementations for HWI
> and several devices (https://github.com/Sjors/bips/pull/2). We've
> talked (or emailed rather), and he plans to align those
> implementations with this spec.
> 
> With the BIPs are test vectors, a reference in Python, a C module for
> libsecp256k1, and a patch series adding it to Jade's `sign_psbt`, none
> of it run on a device yet. One script reruns most of the checks.
> 
> No cryptographer has reviewed this and it hasn't been audited. The
> security argument starts with what it doesn't prove, and the evidence
> page lists what failed and what wasn't tested. I'm not a
> cryptographer, so corrections to the argument are much appreciated!
> 
> Repository: https://github.com/AvilaLabs/anti-exfil
> Handbook: https://anti-exfil.avilalabs.org
> 
> Connor Avila,
> Avila Labs

-- 
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/9D731279-6920-44D4-A823-40FDA7C6A338%40sprovoost.nl.


      reply	other threads:[~2026-11-30 19:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 21:08 [bitcoindev] Draft BIPs: anti-exfil signing for BIP340 and ECDSA, with PSBT fields Connor Avila
2026-11-30 16:07 ` 'Sjors Provoost' via Bitcoin Development Mailing List [this message]

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=9D731279-6920-44D4-A823-40FDA7C6A338@sprovoost.nl \
    --to=bitcoindev@googlegroups.com \
    --cc=connoravila@gmail.com \
    --cc=sjors@sprovoost.nl \
    /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