Author

Topic: How do ledger wallet keys operate? (Read 166 times)

legendary
Activity: 2296
Merit: 2721
November 07, 2023, 03:19:58 AM
#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.


legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
November 06, 2023, 08:09:16 AM
#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.
hero member
Activity: 868
Merit: 952
November 06, 2023, 07:07:48 AM
#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?
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
November 06, 2023, 06:47:48 AM
#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.
hero member
Activity: 868
Merit: 952
November 06, 2023, 02: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
legendary
Activity: 3472
Merit: 4801
November 05, 2023, 11:44:32 PM
#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.
hero member
Activity: 1442
Merit: 775
November 05, 2023, 08:20:20 PM
#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.
newbie
Activity: 7
Merit: 0
November 05, 2023, 06: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!
Jump to: