Expand description
§bip39-check
EN — Simple BIP-39 mnemonic validator: detects language, checks word count and checksum. Does not derive seeds/keys. Useful for onboarding, QA, support and SDKs.
PT — Validador simples de mnemonics BIP-39: detecta idioma, confere contagem e checksum. Não deriva seed/chaves. Útil para onboarding, QA, suporte e SDKs.
§Example / Exemplo
use bip39_check::{validate, is_valid};
let ok = "legal winner thank year wave sausage worth useful legal winner thank yellow";
assert!(is_valid(ok));
let report = validate(ok).unwrap();
println!("language: {:?}, words: {}, entropy: {} bits",
report.language, report.word_count, report.entropy_bits.unwrap());Structs§
- Check
Error - EN — Validation error with kind and optional details. PT — Erro de validação com tipo e detalhes opcionais.
- Report
- EN — Successful validation report. PT — Relatório de validação bem-sucedida.
Enums§
- Error
Kind - EN — Error categories returned by
validate. PT — Categorias de erro retornadas porvalidate. - Language
- EN — Supported BIP-39 wordlists (enable languages via
bip39features). PT — Wordlists BIP-39 suportadas (habilite idiomas via features dobip39).