MicroStrategy / did-btc-spec

did:btc Method Specification
https://microstrategy.github.io/did-btc-spec/
43 stars 12 forks source link

How to get keypath private key of the UTXO #17

Closed andrewlunde closed 1 month ago

andrewlunde commented 2 months ago

In the SDK README.md file line 150:

let privkey = Buffer; // the keypath private key of the UTXO

I'm at a loss of how to get the particular private key for a particular UTXO and what format is expected here.

Can you provide to method or tools for a BIP39 P2WPKH (Sparrow Default) and a correct (but obfuscated) example?

Forgive my noobiness.

andrewlunde commented 1 month ago

I've resolve my issue. Was using a deterministic wallet and it was set up with SegWit when it should have been TapRoot.