Pieter Wuille [ARCHIVE] on Nostr: π
Original date posted:2021-02-11 π Original message:βββββββ ...
π
Original date posted:2021-02-11
π Original message:βββββββ Original Message βββββββ
On Thursday, February 11, 2021 6:38 AM, Dr Maxim Orlovsky <orlovsky at protonmail.com> wrote:
> Thank you very much for all the clarifications; itβs good to have them sorted out and clearly structured. From what you wrote it follows that we still need to reserve a dedicated purpose (with new BIP) for BIP340 signatures to avoid key reuse, am I right?
Maybe, but it would be for a particular way of using keys (presumably: single-key pay-to-taproot), not just the signature scheme itself. If you go down this path you'll also want dedicated branches for multisig participation, and presumably several interesting new policies that become possible with Taproot.
The only thing ECDSA/Schnorr specific about this is that - if you want to maintain provable security - the keys used for ECDSA and BIP340 should be separated by a hardened step. It seems however that all approaches people actually use to prevent reuse do that already.
And as I said, dedicated branches only help for the simple case. For example, it doesn't address the more general problem of preventing reuse of keys in multiple distinct groups of multisig sets you participate in. If you want to solve that you need to keep track of index is for participating in what - and once you have something like that you don't need dedicated purpose based derivation at all anymore.
So I'm not sure I'd state it as us *needing* a dedicated purpose/branch for single-key P2TR (and probably many other useful ways of using taproot based spending policies...). But perhaps it's useful to have.
Greg Maxwell pointed out to me that there may be another reason to want non-reuse across ECDSA and BIP340 keys: if someone were to do all of these wrong:
* not follow BIP340 and re-use RFC6979 for BIP340 nonce generation
* reuse the same keys for both
* sign the same message with both
... you would actually leak your private key. This isn't a concern for Bitcoin transaction signing however, as the sighash (message) indirectly commits to BIP341 or not, and thus it'd be impossible to construct colliding messages. Still, it's a consideration to factor in.
Cheers,
--
Pieter
Published at
2023-06-07 18:28:29Event JSON
{
"id": "a1201b08a41d43b79759962b8e7a6506a476907de46665ba34ad81e356e87eb8",
"pubkey": "5cb21bf5d7f25a9d46879713cbd32433bbc10e40ef813a3c28fe7355f49854d6",
"created_at": 1686162509,
"kind": 1,
"tags": [
[
"e",
"d2c8b65efdaee73f5c5fd62fe4b915d4fcf718277dfab7951f3a1bbc122c404e",
"",
"root"
],
[
"e",
"5117e703d777dfb4458026c987d3519f00667f4132a40935c4abe5adc632e243",
"",
"reply"
],
[
"p",
"e9df2c6568740a6df3ce993eccd824db95dc136a0c2410be397e2fbb82270e0e"
]
],
"content": "π
Original date posted:2021-02-11\nπ Original message:βββββββ Original Message βββββββ\nOn Thursday, February 11, 2021 6:38 AM, Dr Maxim Orlovsky \u003corlovsky at protonmail.com\u003e wrote:\n\n\u003e Thank you very much for all the clarifications; itβs good to have them sorted out and clearly structured. From what you wrote it follows that we still need to reserve a dedicated purpose (with new BIP) for BIP340 signatures to avoid key reuse, am I right?\n\nMaybe, but it would be for a particular way of using keys (presumably: single-key pay-to-taproot), not just the signature scheme itself. If you go down this path you'll also want dedicated branches for multisig participation, and presumably several interesting new policies that become possible with Taproot.\n\nThe only thing ECDSA/Schnorr specific about this is that - if you want to maintain provable security - the keys used for ECDSA and BIP340 should be separated by a hardened step. It seems however that all approaches people actually use to prevent reuse do that already.\n\nAnd as I said, dedicated branches only help for the simple case. For example, it doesn't address the more general problem of preventing reuse of keys in multiple distinct groups of multisig sets you participate in. If you want to solve that you need to keep track of index is for participating in what - and once you have something like that you don't need dedicated purpose based derivation at all anymore.\n\nSo I'm not sure I'd state it as us *needing* a dedicated purpose/branch for single-key P2TR (and probably many other useful ways of using taproot based spending policies...). But perhaps it's useful to have.\n\nGreg Maxwell pointed out to me that there may be another reason to want non-reuse across ECDSA and BIP340 keys: if someone were to do all of these wrong:\n* not follow BIP340 and re-use RFC6979 for BIP340 nonce generation\n* reuse the same keys for both\n* sign the same message with both\n... you would actually leak your private key. This isn't a concern for Bitcoin transaction signing however, as the sighash (message) indirectly commits to BIP341 or not, and thus it'd be impossible to construct colliding messages. Still, it's a consideration to factor in.\n\nCheers,\n\n--\nPieter",
"sig": "2afdf92c409f64dcf6fe7dcbf03fcc8082754db6e93ea01d242eb1f0a01ae44ed96455bebc8759d33591ddd83d9f9b4e10f87b3c4a957d9cb62a882968e5ec52"
}