Author

Topic: How to spend from a segwit address in Bitcoin Core? (Read 213 times)

hero member
Activity: 1120
Merit: 540
Duelbits - Play for Free | Win for Real
The private key is enough to determine the segwit address, although you may need to tell whatever other wallet software you choose to use to generate such a segwit address.
I was playing around with iancoleman BIP39 tool, if I choose derivation path BIP49 it generates HD wallet segwit addresses
but I don't see redeem script for any of the addresses, can you tell me how to generate redeem script based on private key
because if I want to use coinb.in to create tx, I need redeem script to retrieve the segwit address' utxo
can you point me in the right direction on this matter
  import the private key of any bip49 address you want in the Bitcoin core v0.15.1 wallet, you will see that it will import a legacy address (starting with 1xxxx), copy the imported address, open the bitcoin core console, type: addwitnessaddress "paste-the-address-here"

You will see that the bitcoin core will return an address that starts with 3xxxxxxx which is the same one that is listed in iancoleman.io/bip39/ that starts with 3xxxx

Note that you must have the core bitcoin synchronized to add a legacy address to the segwit, both legacy and segwti addresses share the same private key...
hero member
Activity: 1232
Merit: 738
Mixing reinvented for your privacy | chipmixer.com
The private key is enough to determine the segwit address, although you may need to tell whatever other wallet software you choose to use to generate such a segwit address.
I was playing around with iancoleman BIP39 tool, if I choose derivation path BIP49 it generates HD wallet segwit addresses
but I don't see redeem script for any of the addresses, can you tell me how to generate redeem script based on private key
because if I want to use coinb.in to create tx, I need redeem script to retrieve the segwit address' utxo
can you point me in the right direction on this matter
staff
Activity: 3458
Merit: 6793
Just writing some code
The private key is enough to determine the segwit address, although you may need to tell whatever other wallet software you choose to use to generate such a segwit address.
hero member
Activity: 1120
Merit: 540
Duelbits - Play for Free | Win for Real
And if I can no longer spend the balance of a segwit address on the bitcoin core, let's say the database corrupts and I do not want to wait for the wallet to sync until the core bitcoin recognizes the segwit rule turned on August 21 (was that date even? ), how can I export the private key and redem script of the segwit address in another wallet or create a raw transaction using this information? Or I can only spend from a segwit address created in bitcoin core and I can only spend it on bitcoin core?
Jump to: