Key management library for react native apps
Use one of the following methods:
- npm:
npm i @leapwallet/leap-keychain-rn
- Yarn:
yarn add @leapwallet/leap-keychain-rn
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'
}
};
})
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT