mnemonic

Create memorable sentences from byte sequences.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.4
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-08-01 05:02

Authors

  • Mark Spanbroek

Installation

nimble install mnemonic
choosenim install mnemonic
git clone https://github.com/markspanbroek/mnemonic

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
mnemonic - - - - - - -

Dependencies

Package Version Optional
nimsha2 >= 0.1.1 & < 0.2.0 No

Source

Repository https://github.com/markspanbroek/mnemonic
Homepage https://github.com/markspanbroek/mnemonic
Registry Source nimble_official

README

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