Bitcoin Forum
April 30, 2024, 03:31:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 [82] 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 ... 461 »
1621  Bitcoin / Electrum / Re: Electrum Wallet Backup on: April 07, 2021, 11:56:09 AM
Interesting but I can't find it in the source code. I could only trace encryption back to the pw_encode() method that does what I said above and it seems to only get private keys (eg. an imported key or when it reads the key from wallet to sign a message). Can't find where the wallet file itself is being encrypted though.
This script outlines the process it takes to check for the version and the keys used for decryption;  HW wallet's xpubs or the user's password[1].

[1] https://github.com/spesmilo/electrum/blob/d86138a1a5a144b5adc32ef8bd1ff7afd860927d/electrum/storage.py#L118
1622  Bitcoin / Bitcoin Technical Support / Re: 0 incoming connections on: April 07, 2021, 11:27:02 AM
I can't tell what the problem is unless I take a look at your code. Did you modify the checkpoints as well as the minimum PoW?
1623  Bitcoin / Bitcoin Technical Support / Re: Problems syncing this morning : invalid block, please help on: April 07, 2021, 09:43:50 AM
only thing i can think of is that i have BTC core on ext usb 3.1 SSD drive (at that time it was not SSD tho). this one is faster now.
Without any information about what went wrong when Bitcoin Core invalidated it, it'll be hard to pinpoint the problem especially if your hardware is doing fine.

However, I'll consider USB external drives far less reliable than SATA ones. The controllers that I've had for my drives were not exactly the best though they were fairly expensive and well known. Bitcoin Core tends to magnify the problems associated with them due to the nature of the program and how it interacts with the disk. Assuming that your data directory is on the external SSD.
1624  Bitcoin / Electrum / Re: Electrum Wallet Backup on: April 07, 2021, 05:25:12 AM
That code is for encrypting and decrypting messages using ECIES which uses a smaller size AES (128 version) and has nothing to do with wallet file encryption.

The wallet file is actually encrypted using AES-256 and the double SHA256 hash of the password that the user enters. The code is found here: https://github.com/spesmilo/electrum/blob/22e6fe09c17724cd75763306470fa46a7bb7c4e8/electrum/crypto.py#L110-L125
Electrum encrypts the private keys and seeds differently from the wallet file. The seeds and private keys are encrypted with AES-256-CBC but the wallet file uses ECIES which allows it to be written and encrypted without the need for the passphrase to be entered again.

https://github.com/spesmilo/electrum/blob/1b763b4a3c6a456c6b944c7cd7493a7ec1a54a12/RELEASE-NOTES#L841
1625  Bitcoin / Bitcoin Discussion / Re: What are rebuttals to argument that China could mine empty blocks to kill BTC? on: April 07, 2021, 02:11:54 AM

What do they get from mining empty blocks?

It wouldn't make sense that they spend lots of energy and then don't get anything from it. It will just make them spend money on electricity bills all for nothing. This is why 51% attack wouldn't be possible because there is no incentive in doing it while they can earn more in mining the right way and then earn.
The game theory works economically where the actor cares about his financial profit. However, if you're going to factor in state actors, they're more likely to have non-economic related incentives which can't be measured in monetary terms.

The potential profits from 51% Bitcoin is not a factor for a state actors in furthering their agenda. Given how high their GDP is, the attack would probably be a pocket change. However, they're still bound to the limitation that I've mentioned.
1626  Bitcoin / Electrum / Re: I try send btc and the electrum and he close on: April 06, 2021, 11:20:24 PM
Where did you download your Electrum? Did you verify it?

Go to Tools > Preferences and enable save log to file. Afterwards, try to send the funds again for the Electrum to crash. If it still crashes, go to %appdata%/Electrum and see the logs folder. Check the logs pertaining to the crash by opening them with a notepad. Check if there are any exceptions thrown by Electrum or any errors.
1627  Bitcoin / Bitcoin Discussion / Re: What are rebuttals to argument that China could mine empty blocks to kill BTC? on: April 06, 2021, 10:20:04 PM
For this censorship to be effective, China government has to control at least 51% of the network's hash rate. Note that while a good percentage of the hash rate is located in China, it doesn't mean that the government has direct control of the hash rate. Something like this would take some time to plan and would probably be leaked out at some point.

The argument against this is the same as the one against 51% attacks. There is a lack of incentives and that the attack would be fairly shortlived. Once the attack becomes known, it would be a matter of time before people switches to another crypto or the community decides to go on another fork with a different PoW. As such, there is a limited effectiveness of the attack and China has just destroyed their fairly lucrative ASIC industry while not really achieving much. For the above scenario, I'm assuming that China has in fact 51% of the hash rate and is able to consolidate them in the first place which is fairly hypothetical.
1628  Bitcoin / Electrum / Re: Electrum Wallet Backup on: April 06, 2021, 03:47:21 PM
does Electrum use strong encryption for it's wallet backups?
Key derivation used is PBKDF2 and it is salted, IIRC so no rainbow tables. There isn't any real risks with moderately strong password. However, as with all backups, if someone gets his hands on it, then it'll definitely be less secure than it should be. Use a strong and unpredictable password and keep it safe. While backing up the seed will eliminate any electronic failure affecting the backup, it'll be better to have both if you also value your TX descriptions, labels and your LN channels.
1629  Bitcoin / Electrum / Re: electrum labeling on: April 06, 2021, 01:22:19 PM
Is there any way to backup labels somehow?
One time I had to reinstall Electrum on my new computer and after importing my old seed phrase all labels disappeared, but I didn't click save backup from file menu before (not sure if that saves labels btw).
Maybe labels are also saved in some Electrum folder file.
Yup, the labels are only in the wallet file though. The backup wallet functions backs up your wallet file and exports it in .backup extension.

Either using that or just directly copying your wallet file from Electrum's data directory is fine.
1630  Bitcoin / Electrum / Re: electrum labeling on: April 06, 2021, 11:14:46 AM
i send a coin to B. In the description field i put in B.

Now B is a label (description) in the history tab but the change address is not labeled with B. Is this right? Do i have to label my change manual?
The description is used to indicate the purpose of the transaction to provide better clarity for the user. It is not associated with any addresses and thus does not affect the labeling of your own addresses.

If you want, you have to label your addresses manually. Note that the labels are only visible to you and local to your wallet file. Unless you have your wallet files, labels or description won't be covered by seed backups.
1631  Bitcoin / Bitcoin Technical Support / Re: Problems syncing this morning : invalid block, please help on: April 06, 2021, 11:07:47 AM
null

is that the intended output?
Yup. Great that it is working for you!

Nonetheless, if you have the time, you can try some utility to test your memory, CPU and your disk and see if there are any defects in them. Blocks shouldn't be invalidated without the user specifically marking it or if there is a block corruption. It has worked once previously but it didn't for another and I didn't manage to get that user to run any tests.
1632  Bitcoin / Bitcoin Technical Support / Re: 0 incoming connections on: April 06, 2021, 11:02:53 AM
If you're connecting from your computer to that VPS, then it is an outgoing connection and hence the stats would be correct. For you to have an incoming connection, you need to connect from that VPS to the node that you're using. There is no connection that would be both incoming and outgoing as it would serve practically zero purpose.

How many blocks have you created? The thing is that Bitcoin Core expects more than 2 blocks, as seen in the 1.47% from synchronizing block headers. It won't do any IBD without having all of the headers first.
1633  Bitcoin / Bitcoin Technical Support / Re: Problems syncing this morning : invalid block, please help on: April 06, 2021, 10:44:26 AM
Go to Window>Console and type this:
Code:
reconsiderblock 0000000000000000000b818d87315f69398aa6ba886d869f8c403a41f509e7f7


If it doesn't solve the problem, then your database is corrupted and you need to reindex. It can happen due to hardware failures; would be good if you could test your RAM for any inconsistencies.
1634  Bitcoin / Bitcoin Technical Support / Re: 0 incoming connections on: April 05, 2021, 10:39:59 PM
Connections are bidirectional so its polarity shouldn't play a factor if no information is being transmitted to and from a node. Can you add debug=net into the Bitcoin.conf and see the network messages?

It should provide a picture of the interaction between the nodes and if any messages are being communicated.
1635  Bitcoin / Bitcoin Technical Support / Re: Multisig on: April 05, 2021, 04:44:40 PM
if i use electrum to check my 3 public master keys i see that they all start with zPub. Is this an xPub ( master public key) and everything that we talked about ?
Yes. That is the bech32 standard (bc1). It'll be wrong to generalize them as xPub as there are many variations of the master public key.
1636  Bitcoin / Hardware wallets / Re: ColdCard hardware wallet on: April 05, 2021, 04:34:01 PM
Well sure but someone could just take your hardware wallet, tamper with it and modify it like LazyNinja did, then return you that modified hardware wallet without you even noticing it.
Depends on the type of modifications I guess. Most of the components (AFAICT) are covered with epoxy and there is a testing for any malicious data during start up.

I think you may be right about this, and one of the ways to mitigate this is by using good passphrase for your hardware wallet as extra layer of protection.
Hmm? The attacks bypasses the PIN and would just reveal everything. I don't think Coldcard uses passphrase as an encryption, or else it would have more than a keypad, or perhaps I haven't used it enough Tongue. Exploiting the SE is probably the most crucial part of the attack and if it succeeds, then I don't see much deterrence against physical attacks.


FWIW: https://twitter.com/nvk/status/1377710160450293763.

Tons of other stuff on that Twitter but yeah, this is probably the only important one.
1637  Bitcoin / Bitcoin Technical Support / Re: Unconfirmed Stuck Transaction QT/Core / Network Synch Issue on: April 05, 2021, 03:42:28 PM
I have decided to go with Core but just have a couple of questions. 
Bitcoin-qt was rebranded as Bitcoin Core, if you had any doubts.
I will firstly back up my QT wallet, but I am wondering – in Core somewhere will there be a simple option to load a wallet or is the process more elaborate?

Also, I’m doubting that I will need to recync since on my hard drive I have blockchain data (AppData\Roaming\Bitcoin) so I can point the Core data directory to that folder if it isn’t in the first place?  Is there anything else I need to know about this?     
Core should still be pointing at that directory even with an upgrade, it's the default directory anyways. In the case that it doesn't get directed at the correct directory, you can just change it manually with a command. Bitcoin Core will always load the wallet.dat that is in the data directory.
 
You shouldn't have to resynchronize.
1638  Bitcoin / Bitcoin Technical Support / Re: Multisig on: April 05, 2021, 02:56:08 PM
someone here also said that you can get all master public keys from a transaction from the multi sig wallet. is that true?
You can get a redeem script of the multisig address if you're able to get a transaction for which the inputs are from the multisig address. This gives you all of the possible public keys that are in the redeem script. Master public keys are not located in the redeem script or at least I've never seen any redeem scripts like that. For wallets that uses xpubs to generate multiple multisigs in a HD manner, each of the redeem script contains the public keys of the addresses that are generated deterministically from the xpub and at the specific indexes for example the first address contains the public keys from the first address generated by the 3 xpubs, and so on.

Let me know if you need an example of a redeem script from a transaction.

But if I'm not mistaken, only the xpubs of the wallets that signed the transaction can be extracted from the TXID.  So, if two private keys sign a 2-of-3 muli-sig wallet's a transaction only one of those two keys' xpubs can be extracted.  Furthermore, I believe one needs to know the remaining xpubs to extract the unknown xpub.
No you can't. If you're using xpubs to generate those multisigs, the wallet actually uses the public keys from each of the individual xpubs and the xpubs are never defined.

Redeem scripts are not revealed to others unless in a transaction. Your addresses are hash of the redeem script.
1639  Bitcoin / Hardware wallets / Re: ColdCard hardware wallet on: April 05, 2021, 02:33:16 PM
As I got the vulnerability may only occur after  ColdCard has been physically in the wrong hands. If you didn’t let it out of your hands nothing can happen. IMO, any wallet  that has been in the wrong hands should not be trusted, it has to be thrown away immediately.
Basically the whole point of a hardware wallet; if the physical security fails, there should be features to prevent this types of things from happening and also why many hardware wallet manufacturers includes a secure element with their devices to minimize the risk of any physical attacks. Saying that a hardware wallet shouldn't be in someone else's hands is the premise of any security and that is not how people should solve this kind of issues.

Wouldn't be better for manufacturer to put a sealing compound over everything inside the wallet to prevent it from any type of  the "inside"-attack?  
ColdCard does put epoxy over their components but apparently it isn't enough.
1640  Bitcoin / Bitcoin Technical Support / Re: Help Moving Old BTC from Bitcoin Core to new Ledger Nano on: April 05, 2021, 12:10:55 PM
Mempool.space is a little bit delay I suggest you use this instead https://jochen-hoenicke.de/queue/#BTC,24h,weight
How long is the delay? If it isn't more than a few minutes, then it should be fine. Blocks are mined (avg) every 10 minutes anyways and the fees wouldn't dip that much just after a single block is mined.

The reason I don't usually recommend people to use jochen's fees is that it is much less obvious for the not-so experienced and would probably cause some confusion as there will be small dips in between blocks and give user a somewhat misleading idea that the fees has suddenly dropped. Mempool.space is much clearer by comparison as it has far clearer details.
Pages: « 1 ... 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 [82] 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 ... 461 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!