1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-06-01 17:15:27 +00:00
Commit Graph

4631 Commits

Author SHA1 Message Date
Jon Atack
ca418babb7 Merge pull request #2091 from EthanHeilman/fixlinks
Fix broken anchor links
2026-05-05 13:44:36 -07:00
Jon Atack
eda049e920 Merge pull request #2113 from schjonhaug/fix/bip119-pseudocode-typo
BIP-119: Fix missing self. prefix on stack reference in pseudocode
2026-05-01 13:16:17 -07:00
Murch
442e9628b3 Eliminate remaining "user-content" anchor links 2026-04-27 17:29:24 -07:00
Murch
b3a069464a Fix other broken anchors
Used the following `sed` command and manually verified the unstaged
changes. Special cases that were not committed included external links
to Wikipedia which are case-sensitive, links specific lines in code, a
link to a title with a slash that had to be cleaned up, and links to
citations on the BIP repository that contain an underscore.

```
sed -E -i '
s/(\[\[[^][]*#)([^]|]*)(\||\]\])/\1\L\2\E\3/g
:again
s/(\[\[[^][]*#)([^]|]*)([: _]+)([^]|]*)(\||\]\])/\1\2-\4\5/g
t again
' bip-0*mediawiki
```
2026-04-27 17:26:49 -07:00
Murch
32b7adf847 BIP342: Fix anchor links 2026-04-27 17:26:47 -07:00
Murch
5137d59442 BIP23: Fix anchor links 2026-04-27 17:26:45 -07:00
Murch
42303cbdf8 BIP22: fix anchor links 2026-04-27 17:26:43 -07:00
Ethan Heilman
835e7107b8 Fix broken anchor links 2026-04-27 17:26:41 -07:00
craigraw
5253e9a294 BIP-0329: Add spscan label type for labelling silent payments wallets (#2149)
* Add spscan label type

* minor edits
2026-04-27 08:01:58 -07:00
Jon Atack
178ba65952 Merge pull request #1946 from strmfos/master
BIP-158: replace deprecated io/ioutil with os.ReadFile
2026-04-24 18:57:07 -07:00
Jon Atack
554be702d7 Merge pull request #2148 from boskodev790/fix/bip-0003-reference-broken-link-in-changelog-entries
Fix BIP3 link in BIP360, touch up BIP3 reference in BIP347
2026-04-23 20:03:26 -07:00
SeedHammer
9eb67f5764 Merge pull request #1548 from seedhammer/master
BIP391: Binary Output Descriptors
2026-04-23 11:17:01 -07:00
Murch
78494dbcc0 Merge pull request #2144 from murchandamus/bip388-update-changelog
bip388: Update Changelog
2026-04-23 07:56:28 -07:00
boskodev790
1609a4f576 Fix broken BIP 3 reference in bip-0347 and bip-0360 changelogs
Both BIPs added a changelog entry on 2026-01-23 referencing the updated
BIP Process meta-BIP with the wrong form:

- bip-0360.mediawiki:404 rendered `[[bip-0003.mediawiki|BIP 003]]`, but
  the actual file is `bip-0003.md`. The MediaWiki link therefore failed
  to resolve to the BIP 3 page on the bitcoin/bips GitHub wiki render
  and on the bips.dev / bip339 style mirrors — readers of the bip-0360
  changelog landed on a 404.

- bip-0347.mediawiki:170 wrote the same reference as bare text
  `BIP 003` with no link at all, so readers of bip-0347 had no way to
  navigate to the BIP 3 they were meant to follow.

Rewrite both entries to use the canonical form `[[bip-0003.md|BIP 3]]`:

- `bip-0003.md` matches the actual filename.
- `BIP 3` matches the display text convention the README (line 40) and
  every other BIP in this repository already use when linking to
  bip-0003 — "BIP 003" with the three-digit zero-pad appears nowhere
  else in the repo for any BIP and is not part of the display style
  described in BIP 2.

Also drops the trailing whitespace on the bip-0347 line while we are
there (the `typos` CI tolerates it but it is inconsistent with every
other line in the same changelog block).
2026-04-23 04:03:40 +02:00
Murch
69a63f629f Merge pull request #2143 from murchandamus/bip174-fixup-changelog
bip174: Explain BIP2 status in Changelog
2026-04-21 13:34:32 -07:00
Jon Atack
50c6ce7636 Merge pull request #2146 from conduition/361/corrections
Corrections to BIP-0361 on rescue protocols
2026-04-20 07:49:09 -07: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
conduition
da7cc678d5 Fix BIP32 links and consistency
Co-authored-by: Jon Atack <jon@atack.com>
2026-04-17 10:44:09 -06:00
Jon Atack
83c1fc8ed2 Merge pull request #2142 from macgyver13/bip352-intermediate-sum
BIP-352: add test vector for edge case - input key intermediate sum zero
2026-04-17 09:23:51 -07:00
conduition
ab2ebe2c5d Corrections to BIP-0361 on rescue protocols 2026-04-17 15:22:59 +00:00
Murch
eec42583f0 Merge pull request #2046 from macgyver13/bip375-reference-testvectors-pr
BIP375: Add test vectors + validator
2026-04-16 17:47:48 -07:00
macgyver13
8c0a9bfa57 BIP-375: add changelog section
Add Changelog section
Begin with version 0.1.0 as this BIP is Draft phase
2026-04-16 14:03:48 -04:00
macgyver13
00957af80e BIP-352: update changelog and correct typo
Add patch version 1.1.1 to Changelog
Remove extra leading double-quote in CoinJoin ref name
2026-04-16 12:06:56 -04:00
macgyver13
c2ac36f48f BIP-352: add test vector for edge case - input key intermediate sum zero
Exercises [A, -A, A] input key pattern where the intermediate sum
hits zero after the first two keys, but the final sum is non-zero.
Implementations that validate after each pairwise addition (rather
than summing all keys first) will incorrectly reject this case.
2026-04-16 12:05:12 -04:00
Murch
e1755b8257 bip174: Fix relative paths to other BIPs 2026-04-16 06:57:49 -07:00
Murch
cfff971940 bip388: Add missing Version header, rename Changelog 2026-04-15 11:32:28 -07:00
Murch
db131ef7b9 bip388: Amend assignment date
BIP3 clarified the content of the ambiguous Created header and renamed it to Assigned.
BIP388 was assigned per
https://github.com/bitcoin/bips/pull/1389#pullrequestreview-1796535592
on 2023-12-26.
The prior "Created:" field content was moved to a Changelog entry.
2026-04-15 11:31:40 -07:00
Murch
78fcc3130b Merge pull request #2122 from darosior/2603_bip54_improvements
BIP 54 test vectors improvements following review in Inquisition
2026-04-15 10:44:47 -07:00
Murch
777ca76c2e bip174: Explain BIP2 status in Changelog 2026-04-15 08:31:40 -07:00
Murch
588431816a Merge pull request #2135 from murchandamus/2026-04-08-deduplicate-psbt-tables
BIP174: Deduplicate type definitions by introducing registry file
2026-04-14 17:19:22 -07:00
Jameson Lopp
86dfa19bef BIP361: Post Quantum Migration and Legacy Signature Sunset (#1895)
* BIP-361

* bip361: Fix background color

* address feedback
2026-04-14 07:37:58 -07:00
Ava Chow
d6ff1bec1d 174: Add changelog and version number 2026-04-13 08:12:35 -07:00
Murch
0a23dbf56a BIP174: Deduplicate per-output type definitions 2026-04-13 08:12:30 -07:00
Murch
d71cd39f69 BIP174: Deduplicate input type definitions 2026-04-13 08:12:00 -07:00
Murch
762e8c785b BIP174: Deduplicate global type definitions 2026-04-13 08:11:19 -07:00
Murch
eb497966e4 Merge pull request #2136 from guggero/bip-0322-clarifications
BIP-322: add clarifications and more test vectors
2026-04-10 16:47:56 -07:00
nymius
ef7703ed8a BIP376: Spending Silent Payment outputs with PSBTs (#2089) 2026-04-10 15:06:48 -07: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
macgyver13
b217897a62 BIP-375: fix label byte order used by labelhash
Test vectors with labels now use big-endian byte order instead of little-endian, matching BIP-352 specification

Summary of test vector changes:
- psbt structure: missing PSBT_OUT_SP_V0_INFO field when PSBT_OUT_SP_V0_LABEL set
- can finalize: one P2WPKH input / two mixed outputs - labeled sp output and BIP 32 change
- can finalize: two sp outputs - output 0 uses label=3 / output 1 uses label=1
2026-04-09 18:07:10 -04:00
Oghenovo Usiwoma
c77a6c5996 BIP-352: warn against stopping scan due to wallet policy filtering (#2134)
Adds a warning to the "if no matches are found, stop" scanning
step. Without it, wallet developers may be tempted to apply policy
filtering (e.g. dust) before deciding to continue,
causing subsequent outputs for the same sender to be missed.
2026-04-07 13:51:12 -07:00
Murch
2dfdfba3e3 BIP440: Varops Budget for Script Runtime Constraint, BIP441: Restoration of disabled Script (tapleaf 0xc2) (#2118)
* Varops: Two BIPs for Script Restoration: varops calculations and tapleaf version (0xc2).

Special thanks to Murch for teaching me mediawiki, and so much great
formatting and clarity advice.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

* script restoration: fix MUL cost to account to round up B to word boundary.
Julian points out that the implementation does this, which improves accuracy
for the case of small B (since the term is multiplied: for normal OP_ADD etc
we don't bother, since the difference is very bounded).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

* BIP 440, 441: official numbers, into README.mediawiki and renamed.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

---------

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2026-04-07 08:33:54 -07:00
craigraw
6c2023e542 Merge pull request #2099 from craigraw/descriptorannotations
BIP393: Output Script Descriptor Annotations
2026-04-07 08:31:42 -07:00