Looks like I can round-trip an SSB identity, now.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4733 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-01-04 01:17:30 +00:00
parent 8ab53f2da3
commit d89a7a5556
6 changed files with 104 additions and 17 deletions

@ -113,10 +113,10 @@ bool tf_bip39_words_to_bytes(const char* words, uint8_t* out_bytes, size_t bytes
}
uint8_t data[33];
crypto_hash_sha256(data, bytes, bytes_size);
crypto_hash_sha256(data, bytes, 32);
if (data[0] != bytes[32])
{
tf_printf("%s: Checksum mismatch.\n", __func__);
tf_printf("%s: Checksum mismatch (%d vs. %d).\n", __func__, data[0], bytes[32]);
return false;
}