Skip to content

Create memorable sentences from byte sequences in Nim

License

Notifications You must be signed in to change notification settings

markspanbroek/mnemonic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create memorable sentences from byte sequences in Nim

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages