yenom / BitcoinKit

Bitcoin protocol toolkit for Swift
MIT License
842 stars 262 forks source link

Hierarchical key ("xpub") based address derivation #262

Open j4nos opened 3 years ago

j4nos commented 3 years ago

I would not derive address beased on private key, but rather hierarchical key ("xpub"). Is it possible? If not, please implement.

let m0prv = try! privateKey.derived(at: 0, hardened: true)