Expose bip39 to script, and fix some things around base64 so that I can round trip it properly.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4729 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-01-03 17:25:34 +00:00
parent 34a87d8b3b
commit c78753f3ff
3 changed files with 62 additions and 7 deletions

View File

@ -653,7 +653,7 @@ static void _test_b64(const tf_test_options_t* options)
fprintf(file,
"'use strict';\n"
"print(base64Encode('hello'));\n"
"let x = base64Decode(base64Encode('hello'));\n"
"let x = utf8Decode(base64Decode(base64Encode('hello')));\n"
"if (x !== 'hello') {\n"
" print(x);\n"
" exit(1);\n"