Skip to content
KeyPhrase generation for the EARTH Network
Branch: master
Clone or download
Latest commit 072e3ba Dec 2, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
benches Port to 2018 syntax. Dec 1, 2019
src English. Dec 3, 2019
tests Minor nit fixes Dec 3, 2019
.gitignore update gitignore and remove travis yml. Dec 2, 2019
Cargo.toml v Dec 3, 2019
LICENSE-APACHE License. Dec 2, 2019
LICENSE-MIT Update to keyphrase across lib. Dec 1, 2019 README. Dec 3, 2019
key.jpg update size. Dec 2, 2019



KeyPhrase generator for the EARTH Network. KeyPhrases are human readable backup phrases which contain most of the information needed to recreate your EARTH addresses.

For more info check out the KeyPhrase Specification

    let keyphrase = KeyPhrase::new(KeyPhraseType::Words12, Language::English);
    let phrase: &str = keyphrase.phrase();
    println!("KeyPhrase: {}", phrase);

    // get the HD wallet seed
    let seed = Seed::new(&keyphrase, "");
    println!("Root Seed: {:X}", seed);

    // English:
    // KeyPhrase: habit treat fringe blouse jump tomato hello become more planet list rhythm
    // Root Seed: 1CD312DB19E0644921616B0E44B4051F2FB5D19567D4866B7AF6C7676746F94FE0E49355397BBF53659882FB928C4DF3AABD32327E88AD732770CE21ECC20
    // ----------

    let keyphrase = KeyPhrase::new(KeyPhraseType::Words12, Language::Korean);
    let phrase: &str = keyphrase.phrase();
    println!("KeyPhrase: {}", phrase);

    // Korean:
    // KeyPhrase: 안부 모니터 장애인 대출 지원 본격적 서적 다행 관점 부족 유치원 갈비
    // ----------

    let keyphrase = KeyPhrase::new(KeyPhraseType::Words12, Language::Italian);
    let phrase: &str = keyphrase.phrase();
    println!("KeyPhrase: {}", phrase);

    // Italian:
    // KeyPhrase: meno elevare diploma tralcio montato servire gittata certo garbo ombelico sfumare sguardo
    // ----------

    println!("Chinese Traditional:");
    let keyphrase = KeyPhrase::new(KeyPhraseType::Words24, Language::ChineseTraditional);
    let phrase: &str = keyphrase.phrase();
    println!("KeyPhrase: {}", phrase);

    // Chinese Traditional:
    // KeyPhrase: 廟 牙 錢 療 健 董 疆 胸 冊 弱 幾 凍 改 喬 叔 冷 山 慘 溝 呵 長 趨 鋪 跳

Word Lengths

Variable length KeyPhrases are supported from 12 to 24 words and 128 bits to 256 bits respectively. Defaults is 12 words/128 bits.

  • 12 (128 bits)
  • 15 (160 bits)
  • 18 (192 bits)
  • 21 (224 bits)
  • 24 (256 bits)


KeyPhrase supports 8 languages and defaults to English.


Full docs are available via

cargo doc --no-deps --open


This project was originally forked from bip39-rs. Thanks to that team for an amazing project! 🎩

You can’t perform that action at this time.