Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/izelnakri/mnemonic
- Owner: izelnakri
- License: mit
- Created: 2017-09-10T10:08:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T20:33:59.000Z (about 2 years ago)
- Last Synced: 2024-10-04T15:24:36.570Z (3 months ago)
- Topics: bip39, bitcoin, blockchain, ethereum, private-key
- Language: Elixir
- Homepage:
- Size: 390 KB
- Stars: 16
- Watchers: 4
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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)
# AA28F65FE57F811887131CD6511DBD33mnemonic = 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).