Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/izelnakri/mnemonic

Elixir library for generating deterministic private keys from words according to BIP39 standard.
https://github.com/izelnakri/mnemonic

bip39 bitcoin blockchain ethereum private-key

Last synced: 2 months ago
JSON representation

Elixir library for generating deterministic private keys from words according to BIP39 standard.

Awesome Lists containing this project

README

        

# Mnemonic

Library for generating deterministic private keys from random words according to BIP39 standard:

```elixir
Mnemonic.generate()
# "obscure appear begin host burden uncle glow tell journey autumn burden welcome"
words = Mnemonic.generate()
# "pretty element obey slab way middle brisk glory stone material hungry guess"
key = Mnemonic.mnemonic_to_entropy(words)
# AA28F65FE57F811887131CD6511DBD33

mnemonic = Mnemonic.entropy_to_mnemonic("00000000000000000000000000000000")
# "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
Mnemonic.mnemonic_to_entropy(mnemonic)
# "00000000000000000000000000000000"
```

- add examples
- maybe do mnemonic to seed

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `mnemonic` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:mnemonic, "~> 0.2.0"}
]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/mnemonic](https://hexdocs.pm/mnemonic).