No description
Find a file
Mark Spanbroek fae635faef Version 0.1.3
2020-04-23 17:23:52 +02:00
mnemonic Move indexToWord() and wordToIndex() to the "words" module 2020-03-28 12:37:56 +01:00
tests Move indexToWord() and wordToIndex() to the "words" module 2020-03-28 12:37:56 +01:00
.editorconfig Conversion of byte array into mnemonic 2020-03-20 21:53:47 +01:00
.gitignore Conversion of byte array into mnemonic 2020-03-20 21:53:47 +01:00
.tool-versions Conversion of byte array into mnemonic 2020-03-20 21:53:47 +01:00
license Conversion of byte array into mnemonic 2020-03-20 21:53:47 +01:00
mnemonic.nim Fix capitalization of nimSHA2 2020-04-23 17:23:36 +02:00
mnemonic.nimble Version 0.1.3 2020-04-23 17:23:52 +02:00
readme.md Rewording of description 2020-03-21 16:02:27 +01:00

Mnemonic

Create memorable sentences from byte sequences. Uses a reversible method that is very similar to Bitcoin's BIP39.

Examples

Generate a random key and encode it into a mnemonic:

import sysrandom
import mnemonic

let key = getRandomBytes(32)
let mnemonic = encode(key)

Decode a mnemonic into bytes:

let decoded = decode(mnemonic) # equals key