Bitcoin Forum
May 02, 2024, 09:36:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do ledger wallet keys operate?  (Read 143 times)
Cleanshit (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
November 05, 2023, 11:32:30 PM
 #1

I've downloaded, assembled, and set up bitcoin-cli from github with success.

I can use the send toaddress and get new address methods to send and receive bitcoins.

Without installing any third-party software which I don't completely trust it functions well, and I'm glad about that.

However, I have a problem: I have to download the entire blockchain files to my PC using Bitcoind.

Is it possible to use the send  toaddress and  get new address functions on my PC only if I have the wallet.dat file? I'm not interested in downloading the entire blockchain files. Can it be done?

How do ledger wallet keys operate? The blockchain is not replicated in this little key. And it functions!
1714642603
Hero Member
*
Offline Offline

Posts: 1714642603

View Profile Personal Message (Offline)

Ignore
1714642603
Reply with quote  #2

1714642603
Report to moderator
1714642603
Hero Member
*
Offline Offline

Posts: 1714642603

View Profile Personal Message (Offline)

Ignore
1714642603
Reply with quote  #2

1714642603
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714642603
Hero Member
*
Offline Offline

Posts: 1714642603

View Profile Personal Message (Offline)

Ignore
1714642603
Reply with quote  #2

1714642603
Report to moderator
1714642603
Hero Member
*
Offline Offline

Posts: 1714642603

View Profile Personal Message (Offline)

Ignore
1714642603
Reply with quote  #2

1714642603
Report to moderator
1714642603
Hero Member
*
Offline Offline

Posts: 1714642603

View Profile Personal Message (Offline)

Ignore
1714642603
Reply with quote  #2

1714642603
Report to moderator
SquirrelJulietGarden
Hero Member
*****
Offline Offline

Activity: 1302
Merit: 726



View Profile
November 06, 2023, 01:20:20 AM
 #2

Is it possible to use the send  toaddress and  get new address functions on my PC only if I have the wallet.dat file? I'm not interested in downloading the entire blockchain files. Can it be done?
You are using a non custodial wallet, that gives you private key of your wallet.
With private keys, you will be able to get public key, public address (receiving address).

It is your receiving address for other people to send bitcoin to you.

If you want to send your bitcoin to other people, you need their receiving addresses and you must ask them about those addresses.

Learn more about Keys, addresses in Mastering Bitcoin Book. Also read more in the Wallets chapter.

███▄▀██▄▄
░░▄████▄▀████ ▄▄▄
░░████▄▄▄▄░░█▀▀
███ ██████▄▄▀█▌
░▄░░███▀████
░▐█░░███░██▄▄
░░▄▀░████▄▄▄▀█
░█░▄███▀████ ▐█
▀▄▄███▀▄██▄
░░▄██▌░░██▀
░▐█▀████ ▀██
░░█▌██████ ▀▀██▄
░░▀███
▄▄██▀▄███
▄▄▄████▀▄████▄░░
▀▀█░░▄▄▄▄████░░
▐█▀▄▄█████████
████▀███░░▄░
▄▄██░███░░█▌░
█▀▄▄▄████░▀▄░░
█▌████▀███▄░█░
▄██▄▀███▄▄▀
▀██░░▐██▄░░
██▀████▀█▌░
▄██▀▀██████▐█░░
███▀░░
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4613



View Profile
November 06, 2023, 04:44:32 AM
Merited by ABCbits (3)
 #3

Without installing any third-party software which I don't completely trust it functions well

Bitcoin Core is no more official than any other Bitcoin wallet software.  It is just as "third-party" as anything else.  It has a fancy name, and it is popular so it's currently considered to be the "reference client", but if some other full node software were to become more popular than Bitcoin Core, then, due to how the bitcoin protocol works, that other software would be the "reference client".

Is it possible to use the send  toaddress and  get new address functions on my PC only if I have the wallet.dat file?

To send a transaction, the wallet software needs to know what bitcoins you have.  Bitcoin Core determines this by downloading the blockchain and noticing EVERY transaction that sends bitcoins to a transaction output that it knows how to access.

If you only want to store private keys, and generate receiving addresses, you can do that with Bitcoin Core without downloading the blockchain.  If you want to be able to tell when you've received a confirmed transaction and/or you want to be able to send any transactions, you'll need to have processed most of the blocks (enough of them to have gotten caught up to where the bitcoins are confirmed).

I'm not interested in downloading the entire blockchain files.

Then you're not interested in running a full node.  Why are you using Bitcoin Core?

Can it be done?

Sure. You can use a SPV (Simplified Payment Verification) wallet.

How do ledger wallet keys operate?
The blockchain is not replicated in this little key. And it functions!

Correct.  The ledger device stores only the keys and the necessary software to communicate with other wallet software.

To use the ledger device you have to connect it to wallet software (such as Electrum).  Most of the software set up to work with the Ledger are SPV wallets.  The wallet software handles verifying when payments are received/confirmed as well as building the transactions to send bitcoins.  When you want to send bitcoins, you first use the wallet software on some other device (such as a computer) to build the transaction. Then you send the unsigned transaction over to the Ledger device.  From the Ledger device, you can sign the transaction. The signed transaction is then sent back to the wallet software which then broadcasts it to the network.
Zaguru12
Hero Member
*****
Offline Offline

Activity: 672
Merit: 866



View Profile
November 06, 2023, 07:24:21 AM
 #4

Is it possible to use the send  toaddress and  get new address functions on my PC only if I have the wallet.dat file? I'm not interested in downloading the entire blockchain files. Can it be done?

Then your only option is to use an SPV wallet (example is electrum and sparrow) which definitely you have to trust a third party and that actually hampers your privacy because these wallets know what you own. The other thing might be a pruned node but you still have to download all the blockchain but will just keep a few of them mostly the one that has details of the address you are using and if you want to use another address you will have to download all the blockchain again.

The SPV wallet will allow you to generate new address for every new transaction but your privacy will certainly be at risk

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5578


Self-proclaimed Genius


View Profile
November 06, 2023, 11:47:48 AM
Merited by Zaguru12 (1)
 #5

-snip-
The other thing might be a pruned node but you still have to download all the blockchain but will just keep a few of them mostly the one that has details of the address you are using and if you want to use another address you will have to download all the blockchain again.

The SPV wallet will allow you to generate new address for every new transaction but your privacy will certainly be at risk
A node with pruned blockchain doesn't have that limitation, it's only applicable to newly imported address(es) or wallets with transaction history contained in the pruned blocks.
The user can still create new "fresh" addresses whenever he wants.

Another correction is it doesn't select the blocks where the related transactions are, it deletes the oldest to the newest blocks depending on the set size.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Zaguru12
Hero Member
*****
Offline Offline

Activity: 672
Merit: 866



View Profile
November 06, 2023, 12:07:48 PM
 #6

node with pruned blockchain doesn't have that limitation, it's only applicable to newly imported address(es) or wallets with transaction history contained in the pruned blocks.
The user can still create new "fresh" addresses whenever he wants.

Another correction is it doesn't select the blocks where the related transactions are, it deletes the oldest to the newest blocks depending on the set size.

Thanks for the correction,

I am aware that it the reason why it needs to download the entire blockchain again for some imported addresses is because that address(es) must have a transaction stored in older blocks with it not available due to size cut down it is needed to download so as to scan every transaction of done with the imported addresses.

Also according to your explanation of a size of 10GB is assigned to the pruned node, it will delete older blocks as new blocks begin to build up, so as to maintain the size (I.e) or the new blocks just continues to add up which will actually increases the size and could make it bigger than that 10GB in future? Should the the older blocks be deleted what happens to the first address of one if its transactions falls into those deleted old blocks?

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5578


Self-proclaimed Genius


View Profile
November 06, 2023, 01:09:16 PM
 #7

Also according to your explanation of a size of 10GB is assigned to the pruned node, it will delete older blocks as new blocks begin to build up, so as to maintain the size (I.e) or the new blocks just continues to add up which will actually increases the size and could make it bigger than that 10GB in future?
The former, it'll keep on deleting older blocks to keep the size set by the user.

Quote from: Zaguru12
Should the the older blocks be deleted what happens to the first address of one if its transactions falls into those deleted old blocks?
Bitcoin Core already saved the related transactions in the wallet.dat file so your wallet wont need to rely on the raw blockchain to view the balance or create transactions.
Besides, the "UTXO set" and "block index" aren't deleted with pruning so your node still know the unspent transactions in the deleted blocks.
The issue is when it need to rescan and verify them from the raw blockchain which is needed when importing an address which will cause issues if it has txns from the pruned blocks.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Lakai01
Legendary
*
Offline Offline

Activity: 2296
Merit: 2721


Top Crypto Casino


View Profile
November 07, 2023, 08:19:58 AM
Merited by seek3r (2)
 #8

[...]
Other things is handled by software which communicate between Ledger and Bitcoin network (or certain centralized server).
Exactly.
Ledger also offers the option of connecting to a Bitcoin node of your choice in Experimental Mode. This means that you don't necessarily have to trust external servers, but can also set up a node yourself and let it communicate with Ledger (live):


Here you can see how it works: SETTING UP YOUR BITCOIN FULL NODE

But I have to admint that I have never used this feature myself.



█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!