mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
bip138: clarify that 0x00 ends payload parsing
Specify that parsing stops immediately. Add a vector with an item followed by a terminator and ignored bytes. Clarify that TYPE 0x00 also doesn't require TYPE_LENGTH.
This commit is contained in:
13
bip-0138/test_vectors/payload.json
Normal file
13
bip-0138/test_vectors/payload.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"description": "Bytes after terminator are ignored",
|
||||
"valid": true,
|
||||
"payload": "030001610080ff",
|
||||
"items": [
|
||||
{
|
||||
"type": 3,
|
||||
"content": "61"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user