Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implements convert mnemonic to privateKey #64

Merged
merged 12 commits into from
Aug 18, 2022

Conversation

gyuguen
Copy link
Contributor

@gyuguen gyuguen commented Aug 16, 2022

Added a function to convert to privateKey using mnemonic and hdPath

@gyuguen
Copy link
Contributor Author

gyuguen commented Aug 16, 2022

My knowledge was short and I couldn't run the test again.
I'll check it out here.

Copy link

@0xHansLee 0xHansLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you applied different code style compared to the existing code.
(e.g. space within braces, indent)
I think it would be good to use consistent code style :)

@gyuguen gyuguen requested a review from youngjoon-lee August 17, 2022 06:57
docs/examples.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
gyuguen and others added 2 commits August 18, 2022 13:48
Co-authored-by: Youngjoon Lee <[email protected]>
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link

@youngjoon-lee youngjoon-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@youngjoon-lee youngjoon-lee self-requested a review August 18, 2022 04:58
docs/examples.md Outdated
Comment on lines 151 to 154
import {Secp256k1 as CryptoSecp256k1, stringToPath, sha256} from "@cosmjs/crypto";
import {panacead} from "../testutils";
import {TextEncoder} from "util";
import {Secp256k1} from "./secp256k1";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import {Secp256k1 as CryptoSecp256k1, stringToPath, sha256} from "@cosmjs/crypto";
import {panacead} from "../testutils";
import {TextEncoder} from "util";
import {Secp256k1} from "./secp256k1";
import { Secp256k1 as CryptoSecp256k1, stringToPath } from "@cosmjs/crypto";
import { Secp256k1 } from "@medibloc/panacea-js";

gyuguen and others added 2 commits August 18, 2022 14:00
Co-authored-by: Youngjoon Lee <[email protected]>
@youngjoon-lee
Copy link

I'm gonna improve our lint script and also make it run in CI.

@gyuguen
Copy link
Contributor Author

gyuguen commented Aug 18, 2022

I'm gonna improve our lint script and also make it run in CI.

Yep. Very good.

@gyuguen gyuguen merged commit c71ebf9 into master Aug 18, 2022
@gyuguen gyuguen deleted the ft/na/add_get_private_key branch August 18, 2022 05:05
@gyuguen
Copy link
Contributor Author

gyuguen commented Aug 18, 2022

@youngjoon-lee
Please deploy the version with this feature to npm. (__)

@youngjoon-lee
Copy link

@youngjoon-lee Please deploy the version with this feature to npm. (__)

yup. will do it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants