Rewrite keyfork-frame in terms of
bytes::Buf
and bytes::BufMut
keyfork mnemonic recover
should accept words in a randomized pattern
Resolved. Vec::dedup only removes sequential duplicates.
keyfork mnemonic recover
should accept words in a randomized pattern
use std::io::Read;
use rand::prelude::*;
fn get_u32_os(file: &mut std::fs::File) -> u32 {
let mut bytes = [0u8; 4];
file.read_exact(&mut bytes).unwrap();
u32::from_le_by…
keyfork mnemonic recover
should accept words in a randomized pattern
The math says this should be 12%. snail's Python code says this should be 12%. My Rust code - even with OS RNG - says this should be 12%. And yet, for some reason, this test stops at 1%.
https:/…