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

refactor redundant key derivation #15

Merged
merged 1 commit into from
Oct 23, 2018
Merged

refactor redundant key derivation #15

merged 1 commit into from
Oct 23, 2018

Conversation

Jwata
Copy link
Contributor

@Jwata Jwata commented Oct 19, 2018

HD keyの重複した処理をリファクタしました。

// follow the HD path
for _, i := range hdpath {
key, err = key.Child(uint32(i))
func deriveKeys(extKey privExtKey, path ...int) (privExtKey, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

引数にprivate extended keyをとって、そこからのpathを辿るように変更しました。

Choose a reason for hiding this comment

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

ACK

@tnakagawa tnakagawa self-assigned this Oct 21, 2018
@Jwata Jwata merged commit 3524e38 into master Oct 23, 2018
@Jwata Jwata removed the in progress label Oct 23, 2018
@akekeke akekeke mentioned this pull request Oct 26, 2018
@Jwata Jwata deleted the feature/oracle branch March 7, 2019 07:39
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.

2 participants