coingrig / coingrig-wallet-generator

Blazing⚡️Fast BTC and ETH Wallet Generator library for React Native, Android and iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@coingrig/wallet-generator

Blazing ⚡️ Fast BTC and ETH Wallet Generator library for React Native, Android and iOS. This is a high performance native library written in GO.

Todo:

  • Bitcoin (segwit)
  • Ethereum
  • Bitcoin Cash
  • Litecoin
  • Doge
  • Egold (Elrond)
  • Solana
  • Dash
  • Ethereum Clasic

React Native

Installation

npm install @coingrig/wallet-generator

Usage

import { generateMnemonic, generateWallet } from '@coingrig/wallet-generator';

// Generate mnemonic
const words = 12; // or 24
const mnemonic = await generateMnemonic(words);

// Generate wallet
const chain = 'BTC' // or ETH
let wallet = await generateWallet(mnemonic, chain);
wallet = JSON.parse(wallet);
console.log(wallet.address, wallet.privateKey);

Native - Android and iOS (Java, Kotlin, Objective-C, Swift)

It is also available to use in native projects (Android and iOS).

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

Blazing⚡️Fast BTC and ETH Wallet Generator library for React Native, Android and iOS

License:MIT License


Languages

Language:Objective-C 38.1%Language:Java 35.6%Language:TypeScript 7.6%Language:JavaScript 6.3%Language:Ruby 5.2%Language:C 2.9%Language:Swift 2.6%Language:Shell 1.6%