bip138: clarify rejection of empty payloads

Clarify that an empty payload contains zero content items. Add a
vector that rejects a payload consisting only of the 0x00 terminator.
This commit is contained in:
Sjors Provoost authored and Murch committed 2026-09-24 14:47:16 -07:00
1 parent aa098559bf
commit bf64a12098
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -9,5 +9,10 @@
"content": "61"
}
]
},
{
"description": "Payload with no content item.",
"valid": false,
"payload": "00"
}
]