-
Notifications
You must be signed in to change notification settings - Fork 5
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: add keyIdentifier.derive()
#99
feat: add keyIdentifier.derive()
#99
Conversation
const isDerivationPath = (derivationPath) => | ||
typeof derivationPath === 'object' && | ||
Symbol.toStringTag in derivationPath && | ||
derivationPath[Symbol.toStringTag]() === 'DerivationPath' |
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.
to avoid instanceof
- maybe worth porting to key-utils
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.
utACK
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.
utACK
backwards compatible with keyIdentifier POJOs right?
yes |
Just to make sure I will update this where it's most crucial (address provider) and see if it breaks any of the tests |
Add
derive
which accepts a partial derivation path and returns a newKeyIdentifier
instance that has a derivation path that is extended with the supplied path indices.Captured from https://github.com/ExodusMovement/exodus-hydra/pull/6497/files#r1575088966