js-moi-bip39
Version:
Bitcoin BIP39 package for deterministic key generation using mnemonic code
60 lines (41 loc) • 2.74 kB
Markdown

[]: https://github.com/sarvalabs/js-moi-sdk/releases/latest
[]: https://github.com/sarvalabs/js-moi-sdk/issues
[]: https://github.com/sarvalabs/js-moi-sdk/pulls
[]: https://docs.moi.technology/docs/build/packages/js-moi-sdk
[][pkgdocs]
[](https://npmjs.com/js-moi-sdk)

[][latestrelease]
[][issueslink]
[][pullslink]

This is a sub-package of [js-moi-sdk](https://github.com/sarvalabs/js-moi-sdk).
The **js-moi-bip39** package provides functionality for generating and managing mnemonic phrases according to the BIP39 standard. The BIP39 standard defines a method for generating a mnemonic phrase, which is a human-readable set of words that can be used to derive deterministic cryptographic keys. By using js-moi-bip39, you can generate and manage these mnemonic phrases, which can then be used with other packages.
Install the latest [release](https://github.com/sarvalabs/js-moi-sdk/releases) using the following command.
```sh
npm install js-moi-bip39
```
```javascript
import { generateMnemonic } from "js-moi-bip39";
const mnemonic = generateMnemonic()
console.log(mnemonic)
// Output
/*
hollow appear story text start mask salt social child ...
*/
```
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as below, without any additional terms or conditions.
© 2023 Sarva Labs Inc. & MOI Protocol Developers.
This project is licensed under either of
- [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) ([`LICENSE-APACHE`](LICENSE-APACHE))
- [MIT license](https://opensource.org/licenses/MIT) ([`LICENSE-MIT`](LICENSE-MIT))
at your option.
The [SPDX](https://spdx.dev) license identifier for this project is `MIT OR Apache-2.0`.