4 releases (2 breaking)
0.3.1 | Feb 10, 2023 |
---|---|
0.2.1 | Feb 10, 2023 |
0.2.0 | Feb 10, 2023 |
0.1.0 | Feb 10, 2023 |
#1817 in Text processing
Used in 3 crates
(2 directly)
16KB
181 lines
dictionary-1024
dictionary-1024 is a mnemonic dictionary that can be used with cryptographic seeds or to transform other binary data. The dictionary has 1024 words in it, which means you can pack exactly 10 bits of entropy into each word. The dictionary has the property that every word can be uniquely determined by its first 3 characters. The API is designed such that only the first 3 characters of a word are considered when doing a lookup in the dictionary.
lib.rs
:
dictionary-1024 is a mnemonic dictionary that can be used with cryptographic seeds or to transform other binary data. The dictionary has 1024 words in it, which means you can pack exactly 10 bits of entropy into each word. The dictionary has the property that every word can be uniquely determined by its first 3 characters. The API is designed such that only the first 3 characters of a word are considered when doing a lookup in the dictionary.
This is a helper library that is used in downstream crates such as seed15 and mnemonic-16bit.
let word = dictionary_1024::word_at_index(5); // "ace"
let index = dictionary_1024::index_of_word(&word); // 5
Dependencies
~130KB