Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hardman <[email protected]>
  • Loading branch information
dhh1128 committed Sep 6, 2024
1 parent 60905ea commit 208ddbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions form.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
el('sha256').value = '';
}
async function cqt() {
const uni_canonical = algorithm_1_14(el('input').value);
el('output').value = uni_canonical;
const encoder = new TextEncoder();
const utf8_canonical = encoder.encode(uni_canonical);
const utf8_canonical = algorithm_1_14(el('input').value);
const decoder = new TextDecoder('utf-8');
el('output').value = decoder.decode(utf8Array);
const sha256 = await crypto.subtle.digest('SHA-256', utf8_canonical);
el('sha256').value = hexHash(sha256);
const blake3 = await hashwasm.blake3(utf8_canonical);
Expand Down

0 comments on commit 208ddbf

Please sign in to comment.