-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add extended key property to SLIP10Node
#196
Conversation
index: 0, | ||
}); | ||
|
||
if (path.ours.tuple.length === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this meant to account for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We call derive
below, which is not valid for an empty array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I had to remind myself of how the fixtures are structured
This adds an
extendedKey
property to SLIP-10 nodes, which returns the BIP-32 serialised extended key. This only works forsecp256k1
nodes, as other standards don't specify a standard for serialisation, and the length of the keys is different across curves.I've also updated
SLIP10Node.fromExtendedKey
to accept a serialised extended key, instead of an options object.