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:
Sjors Provoost authored and Murch committed 2026-09-24 14:47:14 -07:00
1 parent 0f8c26b7c2
commit aa098559bf
2 files changed
+21 -5

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
[
{
"description": "Bytes after terminator are ignored",
"valid": true,
"payload": "030001610080ff",
"items": [
{
"type": 3,
"content": "61"
}
]
}
]