summa-tx / riemann-keys

cryptocurrency hd keys for humans๐ŸŽˆ๐ŸŽˆ
Other
8 stars 1 forks source link

Derive to a path #11

Closed arshbot closed 5 years ago

arshbot commented 6 years ago

Must be able to derive to a certain path from the object this function is called on.

For example, if we have a node at what we're considering the root for this tree, that node should be able to derive to any path with the option to harden by flagging that depth with an apostrophe (').

Examples

root = HDKey(entropy)
root.derive_path("m/44'/0'/0'/0/0")
root.derive_path("m/1'/0'/22')
arshbot commented 6 years ago

Use derive_child in issue #12 to for implemention

prestwich commented 6 years ago

how do you feel about derive_descendant to make it clear it's a child's child?

drmoog commented 6 years ago

'''descendant''' for child's child is clear, I like that

rrybarczyk commented 6 years ago

derive_descendant

arshbot commented 6 years ago

@rrybarczyk I don't think we should close this ticket yet as it's related to implementation. We'll close it when the pull request for this feature is accepted ๐Ÿ˜„

arshbot commented 6 years ago

@prestwich that was merely a cue to take a look at issue #12 if the person assigned to this ticket hasn't yet. I made this ticket first and didn't want someone to accidently duplicate efforts (if someone took this and someone else took issue #12) so I just linked them.