try Seed.from(mnemonic.items, &bip39_seed);
const hex = std.fmt.fmtSliceHexLower(&bip39_seed);
std.debug.print("\"{s}\"\n", .{hex});
pub const Seed = struct {
pub fn from(in: []const u8, out: *[64]u8) !void {
try std.crypto.pwhash.pbkdf2(out, in, "mnemonic", 2048, std.crypto.auth.hmac.sha2.HmacSha256);
}
};
references
i am getting this
"c41af6382642fa4c30afe75b811887179143d9ebec6cc07d76d95bab77a2ca2bc018982f59d49ea66f68759bf6432d722f8f4e819eb94fbc333dfa7032a9be7f"```
instead of this
it might have something to do with UTF-8 NFKD
but i believe the hexadecimal isn’t being converted properly
this tool might help