Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coingrig/coingrig-wallet-generator
Blazing⚡️Fast BTC and ETH Wallet Generator library for React Native, Android and iOS
https://github.com/coingrig/coingrig-wallet-generator
android bitcoin ethereum ios react-native wallet
Last synced: 10 days ago
JSON representation
Blazing⚡️Fast BTC and ETH Wallet Generator library for React Native, Android and iOS
- Host: GitHub
- URL: https://github.com/coingrig/coingrig-wallet-generator
- Owner: coingrig
- License: mit
- Created: 2022-02-05T12:04:48.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T13:51:03.000Z (almost 3 years ago)
- Last Synced: 2024-09-20T15:27:37.594Z (about 2 months ago)
- Topics: android, bitcoin, ethereum, ios, react-native, wallet
- Language: Objective-C
- Homepage:
- Size: 39.8 MB
- Stars: 7
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# @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:
- [x] Bitcoin (segwit)
- [x] Ethereum
- [ ] Bitcoin Cash
- [ ] Litecoin
- [ ] Doge
- [ ] Egold (Elrond)
- [ ] Solana
- [ ] Dash
- [ ] Ethereum Clasic## React Native
### Installation```sh
npm install @coingrig/wallet-generator
```### Usage
```js
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).
- For Android use jitpack: https://jitpack.io/#coingrig/cgwallet-android-artifact
- For iOS use the `CGWallet.xcframework` from `ios/`## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT