Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leapwallet/leap-keychain-rn
https://github.com/leapwallet/leap-keychain-rn
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/leapwallet/leap-keychain-rn
- Owner: leapwallet
- License: mit
- Created: 2023-01-18T05:09:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T13:40:09.000Z (3 months ago)
- Last Synced: 2024-09-25T23:11:15.396Z (about 2 months ago)
- Language: TypeScript
- Size: 1.54 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# react-native-leap-keychain-rn
Key management library for react native apps
## Installation
Use one of the following methods:
- npm:
```shell
npm i @leapwallet/leap-keychain-rn
```
- Yarn:
```shell
yarn add @leapwallet/leap-keychain-rn
```
## Usage```javascript
import { KeyChain } from '@leapwallet/leap-keychain-rn'
// create wallet using mnemonic
KeyChain.createWalletUsingMnemonic({
mnemonic: "12/24 word mnemonic",
name: "wallet name";
password: "encryption password";
addressIndex: "address index";
colorIndex: "0";
chainInfos: {
//The 'chain infos' object includes the address prefix and coin type for the chains for which wallet creation is required.
cosmos: {
addressPrefix: 'cosmos',
coinType: '118',
key: 'cosmos'
}
};
})
```
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT