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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user