Open ghscuuo opened 1 year ago
Using output descriptors with Bitcoin Core directly sounds like the best path forward.
https://github.com/bitcoin/bitcoin/blob/v25.0/doc/descriptors.md
Also, I don't see any questions... Just an explanation of something you wanted to make.
Are you just going to leave this open until someone makes this thing for you, for free?
Me and my million monkeys just now got this self-taught first-draft prototype working after a few days:
$ ts-node bitkit.ts
(input prompt) Enter 128 0s and 1s: 10010010111111010010101011010011000110000111111000100110011000001101010000001000010101011110111011111010111001011101010101000110
(output) BIP39 Mnemonic: napkin true regular couch tiny corn expand apple upon strong inspire method
BIP32 Root Key xpub58, I think: xpub661MyMwAqRbcGM4Hx1fH3qjsoRnGM8GV5oCEPncc72wqp2oeM2hDWtZkWTexfv2fanLGpB84KzdkFquqVuFE5Z5D6iyAncQcMUASpPXgvPG
m/49'/1'/0'/0/0 2N3snKu9fH9DugViGysrgNt9ta8GeQpSoPM
Bitcoin balance for address 2N3snKu9fH9DugViGysrgNt9ta8GeQpSoPM: 0.01659871 BTC
TODO:
As part of getting this prototype working, I discovered I was commingling in my head a couple of different concepts with that initial list of loopings. For this current task, with an Account Extended Public Key (xpub), one cannot loop through anything but Addresses (hardened and not)--the Purpose, Coin, and Account are baked into the xpub. The commingled other concept was, given a seed phrase or similar root-level info, aggressively go find potentially lost balances, due to bone-head mistakes, by looping through a reasonably large set of Purposes, Coins, Accounts, and Addresses (hardened and not)--a project for another day.
I can't find a simple convenient lightweight watch-only wallet that supports testnet and non-traditional derivation paths.
I’m a beginner at using javascript and node.
I want to create a simple command-line watch-only script.
Using Ian Coleman's BIP39 tool as a guide and inspiration, I want the script to:
I promise, I tried hard, with the help of Bard and ChatGPT, and we came close, but something was always not quite right (I think they were trained on old versions of the library).
Thanks so much in advance.