Ryan Heywood ryan
  • Joined on 2023-05-17
ryan pushed to main at public/keyfork 2023-09-01 05:02:17 +00:00
1006fd9503 keyfork-derive-util: cleanup types
96e6c236f0 keyfork-derive-util: add some documentation
Compare 2 commits »
ryan pushed to main at public/keyfork 2023-09-01 04:11:51 +00:00
5424e66aed **/Cargo.toml: refactorings
e850c75879 keyfork-derive-util: Flesh out most of secp256k1
Compare 2 commits »
ryan created branch ryansquared/toolchain-go-1.20.4 in public/stack 2023-08-29 01:02:18 +00:00
ryan pushed to ryansquared/toolchain-go-1.20.4 at public/stack 2023-08-29 01:02:18 +00:00
735f9b4442 Makefile: add kustomize
ae7166d7d3 Makefile: fix gopath issues
0a444e205a go toolchain 1.20.4: not working, need to fix GOROOT
Compare 3 commits »
ryan pushed to main at public/keyfork 2023-08-25 10:20:01 +00:00
da09b95bae keyfork-mnemonic-util: Mnemonic::seed(&self) -> Vec<u8>
ryan pushed to main at public/keyfork 2023-08-25 09:32:07 +00:00
98baaed81c cargo fmt
da96ea94bd keyforkd: extract DerivablePath
a9209ee36a keyforkd: swap minicbor for serde + bincode
Compare 3 commits »
ryan pushed to main at public/keyfork 2023-08-25 06:32:37 +00:00
067de52e4b keyforkd: initial commit
fa8e6d726d keyfork-frame: add asyncext to allow AsyncRead/AsyncWrite
Compare 2 commits »
ryan opened issue public/keyfork#2 2023-08-25 04:45:20 +00:00
Rewrite keyfork-frame in terms of bytes::Buf and bytes::BufMut
ryan pushed to main at public/keyfork 2023-08-25 02:59:06 +00:00
76c9214d73 keyfork-mnemonic-util: impl FromStr for Mnemonic
ee15145662 keyfork-frame: initial commit
Compare 2 commits »
ryan pushed to main at public/stack 2023-08-20 07:03:13 +00:00
e1e0e4669b k/milksad-website: initial commit
ryan pushed to main at public/keyfork 2023-08-19 03:55:52 +00:00
5d7a3c99ba keyfork-mnemonic-util: split mnemonic utilities out of keyfork-mnemonic-generate
ryan pushed to main at public/keyfork 2023-08-18 06:12:21 +00:00
8e74c18135 keyfork-mnemonic-generate: split wordlist parsing into its own thing
ryan pushed to main at public/keyfork 2023-08-18 05:59:11 +00:00
8ec5dc0dec keyfork-mnemonic-generate: test ensure entropy floats around what we expect from birthday values
ryan commented on issue public/keyfork#1 2023-08-18 05:29:59 +00:00
keyfork mnemonic recover should accept words in a randomized pattern

Resolved. Vec::dedup only removes sequential duplicates.

ryan pushed to main at public/keyfork 2023-08-18 05:29:09 +00:00
ac40930b2f keyfork-mnemonic-generate: so, dedup only removes sequential duplicates
ryan pushed to main at public/keyfork 2023-08-18 04:57:58 +00:00
3032e11b78 keyfork-mnemonic-generate: the math ain't mathin
ryan commented on issue public/keyfork#1 2023-08-18 04:21:56 +00:00
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
ryan commented on issue public/keyfork#1 2023-08-18 04:16:35 +00:00
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:/…

ryan pushed to main at public/keyfork 2023-08-18 02:45:22 +00:00
2c06b96953 keyfork-mnemonic-generate: add failing test to track birthday paradox
ryan commented on issue public/keyfork#1 2023-08-18 01:14:59 +00:00
keyfork mnemonic recover should accept words in a randomized pattern

Figuring out the math for the possibility a 24 word mnemonic has duplicate words, using some rough birthday-problem math (https://en.wikipedia.org/wiki/Birthday_problem#Calculating_the_probability)…