bip-341: Commit to all scriptPubKeys in SigMsg #920

pull jonasnick wants to merge 2 commits into bitcoin:master from jonasnick:spk-commit-all changing 1 files +6 −4
  1. jonasnick commented at 12:57 PM on May 15, 2020: contributor
  2. bip-341: Commit to all scriptPubKeys in SigMsg dde165749e
  3. bip-341: add missing Post-History 15fba98cf4
  4. gmaxwell commented at 3:17 PM on May 15, 2020: contributor

    Is there a discussion as to why amounts and scriptpubkey are separately hashed instead of just being one hash interleaved with the amounts? (more similar to the anyonecan pay case)

  5. jonasnick commented at 4:44 PM on May 15, 2020: contributor

    Yes, the current design was suggested by @roconnor on the mailing list (https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2020-May/017808.html) because it saves signers from receiving and hashing the scriptPubKeys if they're just interested in the amounts.

  6. gmaxwell commented at 6:32 PM on May 15, 2020: contributor

    I can't figure out what use a signer would have for the scriptpubkeys without the values. Values without scriptpubkeys would be useful if the signer is always going to assume all inputs are its own.

  7. jonasnick commented at 7:26 PM on May 15, 2020: contributor

    Yeah, scriptPubKeys but not values seems useless. But since values without scriptPubKeys are useful, hashing them separately is better than having a single hash for all TxOuts. Or am I misunderstanding your suggestion?

  8. gmaxwell commented at 5:22 AM on May 16, 2020: contributor

    Hm. On the basis that scripts without amounts are likely not useful the commitment to scriptpubkeys could be inside the commitment to the amounts, which I think would save some hashing in verifiers and reduce data needing to be sent to signers that don't care about either, but I suppose it doesn't matter much.

  9. sipa cross-referenced this on May 22, 2020 from issue Implement BIP 340-342 validation (Schnorr/taproot/tapscript) by sipa
  10. sipa commented at 12:14 AM on May 23, 2020: member
  11. ajtowns commented at 3:59 AM on May 25, 2020: contributor

    ACK

  12. gmaxwell commented at 4:34 AM on May 26, 2020: contributor

    ACK

  13. prusnak commented at 4:08 PM on June 1, 2020: contributor

    ACK

  14. luke-jr added the label Proposed BIP modification on Jun 1, 2020
  15. luke-jr merged this on Jun 1, 2020
  16. luke-jr closed this on Jun 1, 2020

  17. pinheadmz cross-referenced this on May 22, 2022 from issue Implement BIP 340-342 validation (Schnorr/taproot/tapscript) by pinheadmz

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 11:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me