Skip to content

Commit 5f31faa

Browse files
authored
Add test vector for (invalid) mixed-case offer encoding (#1217)
The spec requires the bech32 offer encodings to be all upper- or lowercase, but disallows mixed-case encodings. Here, we add a test vector for this.
1 parent e92a7fa commit 5f31faa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bolt12/format-string-test.json

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
"valid": true,
3030
"string": "LNO1PQPS7SJQPGT+ YZM3QV4UXZMTSD3JJQER9WD3HY6TSW3+ 5K7MSJZFPY7NZ5YQCN+\nYGRFDEJ82UM5WF5K2UCKYYPWA3EYT44H6TXTXQUQH7LZ5DJGE4AFGFJN7K4RGRKUAG0JSD+\r\n 5XVXG"
3131
},
32+
{
33+
"comment": "Mixed case is invalid",
34+
"valid": false,
35+
"string": "LnO1PqPs7sJqPgTyZm3qV4UxZmTsD3JjQeR9Wd3hY6TsW35k7mSjZfPy7nZ5YqCnYgRfDeJ82uM5Wf5k2uCkYyPwA3EyT44h6tXtXqUqH7Lz5dJgE4AfGfJn7k4rGrKuAg0jSd5xVxG"
36+
},
3237
{
3338
"comment": "+ must be surrounded by bech32 characters",
3439
"valid": false,

0 commit comments

Comments
 (0)