code wiki / _hdl_build / nx_bip39_kat.nx
nx_bip39_kat.nx
buildroot/runtime/_hdl_build/nx_bip39_kat.nx
about
nx_bip39_kat.nx -- ENGINEER gate: BIP39 vs the standard's own vectors (trezor/python-mnemonic
vectors.json, the reference suite the BIP-0039 spec links). 8x 24-word + 3x 12-word vectors:
encode(entropy) must equal the published mnemonic STRING byte-exact; decode(mnemonic) must
return the entropy and round-trip. Negatives: swapped word -> BAD_CHECKSUM, alien word ->
UNKNOWN_WORD, truncated phrase -> BAD_WORD_COUNT. Plus generate_24 self-round-trip.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_bip39.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 10 | func bk_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 11 | func bk_z(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 12 | func bk_nib(c: i64) -> i64 called by 1: bk_hex |
| 17 | func bk_hex(hexs: *u8, out: *u8) -> i64 |
| 25 | func bk_eq(a: *u8, b: *u8, n: i64) -> i64 |
| 32 | func bk_vec(ent_hex: *u8, want_str: *u8) -> i64 |
| 55 | func main() -> i64 |