1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 09:50:06 +01:00
Commit Graph

53 Commits

Author SHA1 Message Date
Antoine Poinsot
644610f7b8
bip-0141: clarify the sigop count calculation for CHECKMULTISIG
Since the sigOpCount calculation was copied from P2SH, and P2SH
restricts the use of CHECKMULTISIG with pushed integers the reference
implementation would not take into account the number of public keys for
17 to 20 keys (not representable with an OP_N) even for P2WSH.
Therefore it fallbacks to accounting for 20 sigops in this case, which
this sentence seemed to mismatch with.

Btcd and Libbitcoin use the same calculation as in Bitcoin Core.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2021-01-11 10:53:59 +01:00
Jonathan Cross
df3bf7bd1b
BIP141: Add BIP173 to references. 2018-03-10 10:37:50 +05:30
Luke Dashjr
0e3551cbe9 Merge remote-tracking branch 'origin-pull/584/head' 2018-02-12 03:30:13 +00:00
Luke Dashjr
0402dd2b84 Update status of BIPs 141, 143, 144, and 147 to Proposed 2017-10-29 04:22:13 +00:00
danra
13b1df9c25 is->are in BIP 141 2017-09-22 23:53:55 +03:00
Johnson Lau
824ce9da50 Update status for segwit related BIPs 2017-09-17 19:09:50 +08:00
Luke Dashjr
959fecc15b Promote BIP 2 Draft->Active, and implement it
- Update all Accepted status to Proposed (renamed status)
- The BIP Comments preamble headers added to every BIP
- The License preamble headers have been added to all BIPs with a Copyright section
2016-11-30 09:51:01 +00:00
Luke Dashjr
72f18918a8 Promote BIP 123 Draft->Active, and implement it 2016-11-30 09:45:33 +00:00
Pieter Wuille
5c2da7e07d BIP 141 start and end time 2016-10-17 13:16:22 +02:00
Johnson Lau
3f59ccdddc Add policy descriptions to BIP141 and 143 and address some nits. 2016-10-05 21:00:53 +08:00
jonnynewbs
c2213ed1fd Update BIP 141 to include definition of Virtual transaction size and Transaction weight 2016-09-16 13:55:19 -04:00
Janus Troelsen
d49512e612 Link to permanent PR of reference implementation
analogue to ecfb7ebbca
2016-07-25 10:05:55 +02:00
Luke-Jr
850d103abe Merge pull request #416 from jl2012/patch-26
BIP141 fix
2016-07-21 16:13:10 +00:00
jl2012
55c3d8068a BIP141 terms fix 2016-07-19 00:15:38 +08:00
Wladimir J. van der Laan
83596de8ca bip141: Change 'block cost' to 'block weight'
The term 'block cost' led to confusion about the unit that it is
expressed in, in that it expressed monetary cost. Change it to a more
general term 'block weight'.

This was discussed in the [2016-07-14 Bitcoin Core developer meeting](http://www.erisian.com.au/meetbot/bitcoin-core-dev/2016/bitcoin-core-dev.2016-07-14-19.00.html).
2016-07-18 08:17:00 +02:00
Luke-Jr
f42ca5953b Merge pull request #399 from jl2012/patch-22
BIP141 script failure clarifications
2016-07-16 00:00:31 +00:00
Daniel Cousens
9c7fde09aa bip141: clarify that marker is 1 byte 2016-07-12 12:15:35 +10:00
Johnson Lau
7304edc475 BIP141: clarify size restriction for witness stack 2016-06-10 13:14:25 +08:00
Johnson Lau
d34877f482 BIP141 script failure clarifications
Footnotes to clarify some special conditions which witness scripts will fail
2016-06-07 01:34:19 +08:00
Johnson Lau
d1b52cb198 BIP141: extend max witness program size to 40 bytes
The maximum witness program size is increased from 32 to 40 bytes. This provides extra space to specify script version (for originally 16 upgradable versions to up to 16 * 2 ^ 64)
2016-06-04 20:58:39 +08:00
Luke Dashjr
ce426ab4e1 Merge remote-tracking branch 'origin/master' into segwit_gbt_updates_20160330 2016-05-15 21:31:29 +00:00
Johnson Lau
797a4167b8 BIP141: BIP9 parameters for testnet 2016-05-06 07:23:43 +02:00
Johnson Lau
ab4f511c5c BIP141 clarifications and formatting
Add rationale of block cost
Change the name of "witness nonce" to "witness reserved value"
Update link to reference implementation
Formatting
2016-04-26 18:13:40 +08:00
Luke Dashjr
2e5533849e Merge remote-tracking branch 'personal-github/segwit_gbt_updates_20160330' into segwit_gbt_updates_20160330 2016-04-23 20:20:53 +00:00
Luke Dashjr
5f697ea543 Merge branch 'master' into segwit_gbt_updates_20160330 2016-04-23 20:02:53 +00:00
jl2012
f245646f8b BIP141: Block cost clrification 2016-04-23 16:25:53 +02:00
jl2012
43c34e846b Add P2SH-P2WPKH example 2016-04-23 08:26:48 +02:00
Aaron Voisine
d72c1bfc71 Update bip-0141.mediawiki
The byte representation of "<0 <32-byte-hash>>" is "0x220020{32-byte-hash}"

What was listed here would be the byte representation of "0 <32-byte-hash>". The text explains that there is only one item in scriptSig, so I'm guessing the byte representation is wrong. Also the corrected byte representation would produce the same sig/pubkey described in P2WSH after following the bip16 rules.
2016-04-22 08:44:29 -07:00
jl2012
ee744caca9 BIP141: commitment clarification. BIP144: new diagram 2016-04-09 03:13:37 +08:00
Johnson Lau
a6cc319846 Update bip-0141.mediawiki 2016-04-05 13:03:34 +08:00
฿tcDrak
9c0d407b10 Clarify what remains "to be decided" 2016-03-31 15:39:33 +01:00
Johnson Lau
cacf39b057 BIP141: Sigop clarification 2016-03-31 14:22:36 +08:00
Luke Dashjr
2fa7fb9b5c BIP 141: Specify VB name 2016-03-30 22:47:40 +00:00
Luke Dashjr
a5447e0c4b BIP 141 & 145: Clarify sigop interaction 2016-03-30 22:46:18 +00:00
Eric Lombrozo
ee7b3ab4c0 Witness validation logic trigger clarifications 2016-03-25 01:35:01 -04:00
฿tcDrak
932d75e24f Remove deployment section.
Now we know we will use BIP9 version bits, remove references to ISM() and leave TDB
as was done with BIP68,112 and 113.
2016-03-21 10:09:58 +00:00
Luke-Jr
e7f28d88ec Merge pull request #303 from jl2012/patch-10
BIP141: Add 520 bytes witness stack limit
2016-01-29 00:03:35 +00:00
Luke-Jr
1292a1c730 Merge pull request #300 from afk11/typo-141
BIP141, fix small typo
2016-01-29 00:01:48 +00:00
Johnson Lau
4bf562569e BIP141: Add 520 bytes witness stack limit
@sipa
2016-01-26 11:48:30 +08:00
Johnson Lau
6a315c023f BIP141 Non-upgraded wallet description 2016-01-26 01:59:00 +08:00
Luke-Jr
9f8c950869 Merge pull request #295 from fanatid/fix/bip141-urls
BIP 141: fix URLs
2016-01-24 17:43:32 +00:00
Thomas Kerin
64a7c45e84
typo 2016-01-24 17:21:17 +00:00
Johnson Lau
b915ba5378 Clarify txid and wtxid 2016-01-24 19:10:39 +08:00
Kirill Fomichev
174845b3cd BIP 141: fix URLs 2016-01-23 13:40:03 +05:00
Luke-Jr
e38e909f91 Merge pull request #292 from jl2012/bip143example
BIP143 example and clarify
2016-01-22 02:26:05 +00:00
Johnson Lau
7e4dec0d93 Links to reference implementation 2016-01-21 22:53:32 +08:00
Gregory Sanders
7f68752bee Tidy up Witness Program section 2016-01-19 11:58:44 -05:00
Johnson Lau
144dbaa955 Introducing the term "witnessScript" in BIP141 2016-01-19 23:43:11 +08:00
Luke-Jr
b882d296ed Merge pull request #283 from jl2012/patch-5
New witness program definition in BIP141, and related revision in 142 - 144
2016-01-18 19:06:10 +00:00
Johnson Lau
ea49ecb4fb New witness program definition 2016-01-19 02:34:29 +08:00