1.0.0 • Published 2 years ago
@sk1ppi/cardano-infinito-wallet-recovery v1.0.0
@sk1ppi/cardano-infinito-wallet-recovery
Recover your Cardano Infinito Wallet using private keys, it uses cardano-serialization-lib-nodejs to obtain your wallet's address and keys to recover your wallet.
Install
To install the package, use the following command:
npm i @sk1ppi/cardano-infinito-wallet-recovery
Example
To use the package, use the following code example:
const { fromPrivateKey } = require('@sk1ppi/cardano-infinito-wallet-recovery');
const privateKey = '...';
const wallet = fromPrivateKey(privateKey);
console.log(wallet);
// => {
// address: 'Ae2td...',
// accountKey: Bip32PrivateKey {...}
// }
Testing
To run tests, use the following command:
npm run test
Provide your own private key in your environment variables or .env file to test the package.
export PRIVATE_KEY_TEST=...
Contribute
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Reach out
License
1.0.0
2 years ago