1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-05-11 16:51:51 +00:00
Commit Graph

41 Commits

Author SHA1 Message Date
Oli
e69e2f9717 BIP-0322: add guggero as deputy 2026-05-06 12:20:12 +02:00
Oli
d77863fb9e BIP-0322: update test vectors
This commit updates the test vectors to reflect all the changes in the
previous commits and also introduces new test vectors for the Proof of
Funds variant.
2026-05-06 12:20:11 +02:00
Oli
0dd436e7d4 BIP-0174+BIP-0322: describe PSBT based signing
This commit proposes a new PSBT input field type for transporting the
message to be signed to different signers in a multisig signing use
case.
2026-05-06 12:20:11 +02:00
Oli
c2850a0010 BIP-0322: add prefix to message signature 2026-04-20 09:43:30 +02:00
Oli
833a1a8a89 BIP-0322: encode finalized PSBT for Proof of Funds
This commit proposes a fix for the problem that an offline verifier
previously was not able to even verify the witness stack of additional
inputs. By providing the full finalized PSBT, a verifier has all the
input data necessary to run the script through the validation engine.

We require the PSBT to be finalized to make sure it contains the final
script witness or final script sig but no extra potentially
privacy-sensitive fields. The Non-Witness and Witness UTXO fields are
explicitly allowed for finalized PSBTs, which makes the format perfect
for the use case.
2026-04-20 09:43:30 +02:00
Oli
8a46a5bfa5 BIP-0322: clarify terminology used
Since the term "signature" can be pretty overloaded dependin on the
context, we clarify what it actually means in this BIP.
2026-04-20 09:43:30 +02:00
Oli
0a20483c65 BIP-0322: update motivation, clarify Proof of Funds purpose
This addresses two discussion items:
 - The list of UTXOs should not be interpreted as a "proof that no other
   UTXOs for an address exist".
 - The BIP only addresses "signer receives funds with the address" and
   not "signer sent a previous transaction" use case.
2026-04-20 09:43:30 +02:00
Oli
665d96065f BIP-0322: reference btcd implementation 2026-04-20 09:43:30 +02:00
Oli
bbaf40ce1d BIP-0322: small semantic and formatting fixes
This fixes small inconsistencies or incomplete definitions based on
previous, already merged changes.
2026-04-20 09:43:29 +02:00
Oli
6f3fce21e6 BIP-0322: wrap long lines at 100 characters
This re-formats the document for easier editing and diff viewing.
Wiki syntax is weird for lists and line wraps break them. Simple lists
were changed to <ul> or <ol> tags but complex lists remain as they are
to not bloat the diff too much.
2026-04-20 09:43:29 +02:00
Oli
3ab70c98a7 BIP-0322: turn test vectors into JSON, add more
This commit turns the existing test vectors into a JSON and then adds
more test cases covering the most common script types.
2026-04-10 09:06:36 +02:00
Oli
805bb0b6fc BIP-0322: clarify scriptSig on to_sign for legacy transactions
Before this commit it was not clear that non-native SegWit outputs
(e.g. P2PKH or P2SH-P2WPKH) only work if the correct scriptSig is
provided.
This then also makes it more clear why P2SH-P2WPKH outputs are NOT
supported by the "simple" variant.
2026-04-10 09:06:36 +02:00
Oli
4d36f73e7b BIP-0322: add format clarification table
This commit adds a table that clarifies what script types are compatible
with what signing variant and also makes more clear what the exact
format for the signatures of the different variants are.
2026-04-10 09:06:36 +02:00
Murch
24e96e870f process: Created ↦ Assigned
```
sed -z -i 's/Created: /Assigned: /' bip-0*.md
sed -z -i 's/Created: /Assigned: /' bip-0*.mediawiki
```
2026-01-12 14:29:51 -08:00
Murch
5207ef92a5 process: Author ↦ Authors
```
sed -z -i 's/Author: /Authors: /' bip-0*.md
sed -z -i 's/Author: /Authors: /' bip-0*.mediawiki
```

Also align correctly in case of multiple authors.
2026-01-12 14:29:00 -08:00
Murch
a233bde4af process: Standards Track ↦ Specification
```
sed -z -i 's/Type: Standards Track/Type: Specification/' bip-0*.md
sed -z -i 's/Type: Standards Track/Type: Specification/' bip-0*.mediawiki
```

After the scripted changes, the changes to BIP-40, BIP-41, and BIP-63
were undone, because it breaks CI.

These three BIPs only exist conceptually and their proposal documents
are missing which causes changes to them ot break the CI. I defer the
changes to these BIPs to a separate pull request to get CI to pass.
2026-01-12 14:22:40 -08:00
kurahin
80b4b2a6bd BIP-322: fix proof-of-funds inputs wording 2025-12-14 22:32:04 +02:00
Chris Hyunhum Cho
2f311cc629 bip-0322: add another valid sig vector not to confuse 2024-05-15 11:51:28 +09:00
Ali Sherief
6fc75b1b21 [BIP322] remove empty message requirement for full (proof-of-funds) proofs (#1352)
* add bip-notatether-signedmessage

* minor heading correction

* minor formatting correction

* minor formatting correction

* minor formatting correction

* minor formatting correction

* minor formatting correction

* minor formatting correction

* fix some consistency errors

* Remove empty message for UTXO proofs

* Delete bip-notatether-signedmessage.mediawiki
2024-05-01 06:44:03 -07:00
Wip
8ed2af0784 Fix incorrect signature test vectors in BIP322 2022-06-06 15:13:24 +01:00
Karl-Johan Alm
f52e047d09 clarify that SIMPLE format requires version/locktime/sequence=0 for to_sign transaction 2022-02-03 12:10:47 +09:00
Karl-Johan Alm
aa92d9cd6e add test vectors to BIP-322 2022-01-31 19:06:52 +09:00
Karl-Johan Alm
1b6c85b0b4 bip-322: clarify how the message is serialized 2022-01-31 19:06:52 +09:00
benthecarman
6b9646e159 Allow Taproot outputs in BIP 322 2021-11-23 14:45:38 -06:00
benthecarman
aadfafa770 Clarify BIP 322 seralization requires a signed transaction 2021-11-12 18:14:19 -06:00
Andrew Poelstra
c624414119 bip-0322: remove the 'to_spend' transaction from serialization 2020-12-23 15:48:08 +00:00
Andrew Poelstra
9e1beef6ac bip-0322: overhaul/rewrite verification rules 2020-12-23 15:47:27 +00:00
Andrew Poelstra
dbb81b3652 bip-0322: move "legacy" section up, separate "proof of funds", summarize the signature types 2020-12-23 15:45:59 +00:00
Andrew Poelstra
f778098deb bip-0322: replace motivation, add myself to the "thanks to" list 2020-12-23 15:39:45 +00:00
Karl-Johan Alm
75ec9631ef BIP-322: switch to tx based approach
Co-authored-by: Stepan Snigirev <stepan.snigirev@mpq.mpg.de>
Co-authored-by: Luke Dashjr <luke_github1@dashjr.org>
2020-10-24 16:09:15 +09:00
Karl-Johan Alm
f9e95849f3 bip-322: simplify proposal to single proof case 2020-03-25 15:28:56 +09:00
Karl-Johan Alm
c28773f34e bip322: fix test-vectors 2019-08-28 15:09:50 +09:00
Karl-Johan Alm
b3cec02aa4 bip-322: clarify when to return ERROR in verify action 2019-08-08 01:08:12 +09:00
Karl-Johan Alm
f0784c6e92 BIP322: added background to explain why BIP322 exists, and what it changes 2019-08-06 17:09:25 +09:00
Karl-Johan Alm
91ecdbeb26 BIP-322 updates to fix verification and other fixes 2019-08-01 16:54:47 +09:00
Karl-Johan Alm
e24e86b482 bip-322: add test vectors 2019-07-29 20:45:17 +09:00
Karl-Johan Alm
daa59903e2 BIP-322 update to remove ProveFunds purpose (with a note about extensibility) and to fix the serialization format 2019-07-29 17:19:44 +09:00
Luke Dashjr
b4853407a7 Revert "Merge pull request #744 from kallewoof/bip322-fixes"
This reverts commit 9101836b88, reversing
changes made to e2c91c81cc.
2019-02-20 09:19:04 +00:00
Karl-Johan Alm
df9c2fc6de bip-322: strip out proof-of-funds related stuff and fix several issues 2018-12-03 16:47:27 +09:00
Karl-Johan Alm
2f152773e6 fix witness program -> witness 2018-09-12 16:21:59 +09:00
Karl-Johan Alm
b925137d5f BIP: Generic Signed Message Format 2018-09-12 15:01:04 +09:00