• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

How can a private key be imported to a descriptor wallet?

approx by approx
December 22, 2023
in Bitcoin
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


To give a bit more context to Andrew Chow’s answer: the reason why this isn’t any easier is that the concept of “importing a private key” is an insufficient method for describing what a wallet should do, and the wrong way to think about wallets in the first place. While it is possible to convert wallets with keys imported to them to approximately equivalent descriptor wallets, this does not mean that it’s the best way when importing things. Descriptors and descriptor wallets allow you to be precise about what you want to import, and the importdescriptors RPC lets you do that.

In more detail, this is roughly the philosophy behind the two types of wallets supported by Bitcoin Core:

  • legacy wallets A legacy wallet is a collection of private keys, and loosely structured additional information such as scripts and addresses. Any output which can be spent or observed with those keys/scripts/addresses is considered to “belong” to the wallet. If you import a new key to a wallet, this immediately results in treating payments to the P2PK, P2PKH, P2WPKH, P2SH-P2WPKH, and possibly more, addresses derived from that key to be watched. This is inefficient, hard to describe and reason about, and just doesn’t scale well with new wallet constructions being added (e.g. P2TR), and even harder to deal with when multisig across deviced or participants is added.
  • Descriptor wallets In a descriptor wallet, the outputs considered part of the wallet can be described exactly using a simple “language” which contains all metadata about how the keys are used. If you want just P2PKH addresses derived from a key, you can say that. If you want P2SH-wrapped P2WSH multisig across multiple devices you can say that too, and it will work exactly the same.

In short: the old model of how we thought of wallets wasn’t manageable anymore, and “importing a key” only made sense in that kind of thinking. In the new model, you don’t import keys, you import a description of exactly what you want the wallet to do.



Source link

Related articles

peer discovery – how to obtain the IP addresses of nodes for mining pools?

wallet security – Blockstream Jade – can someone get my bitcoin with my PIN plus my device?

August 4, 2025
Crypto Liquidations Top $400M As Fed Leaves Rates Unchanged

Crypto Liquidations Top $400M As Fed Leaves Rates Unchanged

August 4, 2025
Share76Tweet47

Related Posts

peer discovery – how to obtain the IP addresses of nodes for mining pools?

wallet security – Blockstream Jade – can someone get my bitcoin with my PIN plus my device?

by Moussa
August 4, 2025
0

On searching "blockstream jade can someone get my bitcoin with my PIN plus the device" in Google the AI says...

Crypto Liquidations Top $400M As Fed Leaves Rates Unchanged

Crypto Liquidations Top $400M As Fed Leaves Rates Unchanged

by Moussa
August 4, 2025
0

Join Our Telegram channel to stay up to date on breaking news coverage Over $400 million was liquidated from the...

Trump Media’s Crypto Treasury Hits $2 Billion, Stock Soars By Nearly 9%

SEC Launches Project Crypto to Move Markets Onto Blockchain

by Moussa
August 4, 2025
0

The U.S. Securities and Exchange Commission is stepping into the blockchain era with a bold new initiative called Project Crypto....

Arthur Hayes Sells $13 Million In Ethereum, PEPE and Ethena

Arthur Hayes Sells $13 Million In Ethereum, PEPE and Ethena

by Moussa
August 4, 2025
0

Trusted Editorial content, reviewed by leading industry experts and seasoned editors. Ad Disclosure BitMEX co-founder and key crypto figure Arthur...

Whale Buys 300 Bitcoins Daily Despite Market Crash

Whale Buys 300 Bitcoins Daily Despite Market Crash

by Moussa
August 3, 2025
0

The crypto market is on the back foot after Bitcoin retreats below the $113K threshold, losing over 21% in trading...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width="1/4"][vc_wp_tagcloud taxonomy="post_tag"][/vc_column][vc_column width="1/4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S1maWVsZCUyMiUzRSUzQ2xhYmVsJTNFJTNDaW5wdXQlMjB0eXBlJTNEJTIyY2hlY2tib3glMjIlMjBuYW1lJTNEJTIybnklMjIlMjByZXF1aXJlZCUyMGNsYXNzJTNEJTIydG5wLXByaXZhY3klMjIlM0UlQzIlQTBCeSUyMGNvbnRpbnVpbmclMkMlMjB5b3UlMjBhY2NlcHQlMjB0aGUlMjBwcml2YWN5JTIwcG9saWN5JTNDJTJGbGFiZWwlM0UlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News