Crate bip39_check

Crate bip39_check 

Source
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§

CheckError
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§

ErrorKind
EN — Error categories returned by validate. PT — Categorias de erro retornadas por validate.
Language
EN — Supported BIP-39 wordlists (enable languages via bip39 features). PT — Wordlists BIP-39 suportadas (habilite idiomas via features do bip39).

Functions§

is_valid
EN Fast boolean check using validate. PT Verificação booleana rápida usando validate.
validate
EN Validate a BIP-39 mnemonic.