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

41 Commits

Author SHA1 Message Date
Dmitry Petukhov
65f0b3dd62
BIP-174: test data: fix value length
In the test case "Case: PSBT With invalid output witnessScript typed key", after PSBT_OUT_WITNESS_SCRIPT key with garbage data (which ends with `...478ef51309d`, follows value `2b` which would denote the length of the data value of the key. But the length of actual remaining data is only 7 bytes. Thus, an implementation that reads key-value pairs and checks for validity of the key data after it has read the current key-value pair, will not be able to hit the exact condition intended for this test case: extra data within the key itself. This is because such implementation will hit serialization error when it will try to read the data of the value and will get the short read.

Reading full key-value pair and then checking key format afterwards is fairly normal thing to do, as the format of the keys with all their meaning is an abstraction of higher level than just the simple key-value serialization format.

The proposed change is to replace byte `2b` after the key data to `06` and thus make the value length in the key-value pair valid (not going beyond the end of the data).

base64 encoding has been changed accordingly.
2019-12-09 17:30:47 +05:00
Luke Dashjr
ba804c9d52
Merge pull request #844 from kallerosenbaum/master
BIP174: Remove misleading sentence
2019-11-04 15:00:38 +00:00
Luke Dashjr
daed7bfa8d
Merge pull request #849 from achow101/bip174-extensions
Bip174 extensions
2019-11-04 14:06:54 +00:00
Andrew Chow
bc3a81e698 Specify proprietary use type 2019-10-02 15:09:51 -04:00
Kalle Rosenbaum
f1aff33f46 BIP174: Remove misleading sentence
The sentence seems to suggest that the "master key fingerprint" can be the fingerprint of any intermediate node on the derivation path, which isn't true.
2019-09-20 19:00:03 +02:00
Luke Dashjr
7e9fab150f
Merge pull request #810 from NicolasDorier/bips/global-xpub-test-vector
bip174: Add test vector for global xpub
2019-09-20 00:35:24 +00:00
Luke Dashjr
c7057971e1
Merge pull request #842 from darosior/174_typo
Remove a typo in bip-0174
2019-09-20 00:35:04 +00:00
Luke Dashjr
9e7d213e82
Merge pull request #796 from lukechilds/patch-2
[bip174] Fix typo in signer pseudo code
2019-09-19 22:18:45 +00:00
darosior
b4e6b0fac2
bip-0174: remove duplicated 'only' (typo) 2019-09-16 13:16:11 +02:00
Andrew Chow
20fdf77a2b Specify that types are compact size unsigned ints to allow for multi-byte types 2019-08-01 14:36:25 -04:00
Andrew Chow
503f35a9a0 Add Version type 2019-08-01 14:28:37 -04:00
nicolas.dorier
d832c51e82
bip174: Add test vector for global xpub 2019-07-26 11:35:40 +09:00
Andrew Chow
6a36d8e1b4 BIP 174: global xpubs serialization test vector 2019-07-25 13:37:06 -04:00
Luke Dashjr
6a25c1478f
Merge pull request #800 from junderw/junderw-patch-1
BIP174: Include suggested sighash check
2019-07-23 14:51:01 +00:00
Jonathan Underwood
97447f981f
BIP174: Include suggested sighash check 2019-07-10 08:30:23 +09:00
Luke Childs
7ab9ef95c6
[bip174] Fix typo in signer pseudo code 2019-06-26 16:47:04 +07:00
Andrew Chow
e1f770e236 bip174: add section describing change detection 2019-06-09 23:39:25 +02:00
Andrew Chow
19d3b9dc82 bip174: add global xpub field 2019-06-09 10:48:05 +02:00
Luke Dashjr
e65e3fadc6
Merge pull request #756 from stevenroose/por
BIP 127: Simple Proof-of-Reserves Transactions
2019-04-04 02:50:14 +00:00
Steven Roose
7276e9ae7b
BIP 127: Simple proofs-of-reserves 2019-04-03 21:58:50 +02:00
Kalle Rosenbaum
d7ba77ced5 bip174: Fix invalid references to per-input types 0x07 and 0x08. 2019-02-26 21:32:44 +01:00
Dustin Dettmer
b6b19894c2
Flipping the sentence order here for simplicity.
Being new to the spec, I had to reread this multiple times to understand it. Ordering the setences according to scope seems to make it easier to grock.
2019-02-10 15:42:35 -08:00
Thomas Kerin
2b7b95996a BIP-174: fixtures should use correct magic 2018-08-29 23:52:37 +01:00
Luke Dashjr
63baffca9e
Merge pull request #707 from azuchi/fix-bip174-testvector
[BIP174] Fix to unify Test Vector in key order of PSBT Input.
2018-08-09 18:14:46 +00:00
Andrew Chow
131fc2cebb Specify what signers should check for and describe a simple signer
Test cases for what signers should check for
2018-08-08 17:17:04 -07:00
azuchi
72e60d2116 [BIP174] Fix to unify Test Vector in key order of PSBT Input. 2018-07-30 18:10:27 +09:00
Andrew Chow
6107b01428 Additional tests for BIP 174 2018-07-19 19:03:57 -07:00
Andrew Chow
0a1574fe49 BIP 174 workflow graphics 2018-07-11 16:20:43 -07:00
Andrew Chow
cb426bfdae bip 174 -> proposed 2018-07-11 14:01:20 -07:00
Andrew Chow
72657b416c Clarifications to signer and combiner roles 2018-07-11 14:01:20 -07:00
Andrew Chow
4fcd8bf008 Update tests for new serialization 2018-07-05 15:27:41 -07:00
Andrew Chow
81c20a635e Add sections for encoding, file extension, and mime-type 2018-07-05 15:27:41 -07:00
Andrew Chow
f515da0552 Add new responsibilities, update responsibility, update extensibility descriptions
Add updater, transaction finalizer, and transaction extractor roles.

Update the description of other roles to clarify

Update extensibility section
2018-07-05 15:27:41 -07:00
Andrew Chow
45df424759 Clarify handling of duplicated keys 2018-07-05 15:27:41 -07:00
Andrew Chow
bfae1799d3 Move global data to per-input and per-output data
Change from a global map with input data to a global k/v pair with input and output data.

Add new types for finalized scriptSigs and scriptWitnesses.

Redefined types to support new model

Updated the formatting of the listing
2018-07-05 15:27:41 -07:00
Andrew Chow
478f20f871 [PSBT] Clarify that global data can be for inputs and outputs
Clarifies that global data fields redeem scripts, witness scripts,
and hd keypaths can be used for data necessary for both the inputs
and outputs of the transaction.
2018-04-04 11:21:54 -04:00
Andrew Chow
a925cbb632 More BIP 174 tests 2018-01-06 15:14:12 -05:00
Andrew Chow
597c5afda5 Test Vectors for BIP 174 2018-01-04 22:47:09 -05:00
Andrew Chow
53891fc7ed Clarify what the number of inputs field is actually 2018-01-04 13:23:15 -05:00
Daniel Cousens
4b06d2b30a
refactor responsibilities for simplicity and clarity 2017-12-12 19:00:35 +11:00
Andrew Chow
958641741b Specify the Partially Signed Bitcoin Transaction format in a BIP 2017-09-18 00:24:47 -04:00