toncenter / tonweb-mnemonic

Mnemonic code for generating deterministic keys for TON (The Open Network)
GNU General Public License v3.0
53 stars 20 forks source link

Added support for Node.js and more #8

Closed slavafomin closed 2 years ago

slavafomin commented 2 years ago

Signed-off-by: Slava Fomin II slava@fomin.io


I've tested the changes to work correctly in Node.js environment (my private project) as well as in Browser (ton-wallet project).

slavafomin commented 2 years ago

This release is temporarily published under @moebius/tonweb-mnemonic@0.1.0, feel free to check it out.

The usage is:

npm i -S @moebius/tonweb-mnemonic
import { generateMnemonic } from '@moebius/tonweb-mnemonic';

const words = await generateMnemonic();

console.log(words);