Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leapwallet/leap-keychain-rn


https://github.com/leapwallet/leap-keychain-rn

Last synced: 9 days ago
JSON representation

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