Bitcoin Forum
May 04, 2024, 10:40:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 »
41  Bitcoin / Bitcoin Discussion / Write a song with your seed phrase on: November 16, 2022, 09:45:03 PM
"I wish I was like you
Easily amused
Find my nest of salt
Everything’s my fault
I'll take all the blame
Aqua sea foam shame
Sunburn freezer burn
Choking on the ashes of her enemy"

- All Apologies by Nirvana

Humans have trouble remembering nonsense like 12 random words, but if you write some lyrics and add the melody to your favorite song, it’s a lot easier. I have no idea what Kurt Cobain is talking about above, but if the melody is good, we can remember any combination of words.

EDIT

I am not suggesting this to be your only option for storing your seed phrase. I just thought it could be helpful to remember your seed phrase, in case you lose your backups.
42  Bitcoin / Bitcoin Discussion / The benefits of self-custody outweigh the risk of exchanges on: November 16, 2022, 04:29:11 PM
You may have heard of James Howells and his $11 million plan to find a hard drive with $181 million in Bitcoin. That is a risk of self-custody, but his chance of finding his bitcoin is actually good.

If you had bitcoin held on FTX, there is no amount of money or time that will bring those coins back. They are gone. You have a 0% chance of finding those bitcoin.

Even in the worst case scenario, self-custody is better than an exchange.

Not your keys, not your bitcoin.

Edit:

I originally had the title worded wrong. I meant the risks of self-custody are worth taking over the risk of exchanges.

43  Bitcoin / Project Development / Re: BTCapsule is a program to easily timelock your bitcoin for inheritance on: November 15, 2022, 09:33:24 PM
Hopefully people will try out the testnet version and post their experience here soon. The problem with a program that requires the future is it will take some time to get feedback.

However, if you’re interested, I have two transactions that I completed so you can see for yourself that BTCapsule indeed works on mainnet.

Thank you! I'll have to remind myself to come to test it out myself, as mentioned, one of the things on my mind (even if on the backburner) is to really work out how to pass my things on, and at the same time work out a way to make it legible to the receiver. The part on fees concerns me at the moment, impossible to foresee what the network and price would look like in 5 years, never mind decades.

The paper wallet that is generated by BTCapsule is not like most paper wallets you see on Google images. The BTCapsule paper wallet is literally a .txt file that can be accessed and read by any computer. I chose this format because it is one of the oldest and platform-independent files that exists.

Because it’s a .txt file, I have also included instructions within the paper wallet on how to sweep the wallet and handle miner fees. This is to ensure that directions are available even if my website is not.

Miner fees must be covered by inputting a smaller amount in the BTC field than you sent to the address. Although transaction fees may cost more fiat in the future, as the price of Bitcoin increases, choosing the current standard miner fee will be more than enough to ensure success.

I am not concerned with the network changing drastically enough to make the redeem script invalid. That would require a hard fork and millions (billions?) of people accepting the new network. Of course, you can still set up a method of passing on your sender_wallet private keys so they can redeem at any time, but the timelocked script is meant to ensure that there is nothing the recipient needs to remember (passwords, PIN codes) in order to access your coins.
44  Bitcoin / Project Development / Re: BTCapsule is a program to easily timelock your bitcoin for inheritance on: November 13, 2022, 03:31:52 AM
Hands up here I never heard of you yet but I've mentioned several times now in the past about inheritance and the lack of ease of use of timelock (for me anyway) -- think the only practical part for me to deal with is to fix the readiness of destination wallet (the receiver). Some of DaveF's points really valid, I think we underestimate how quickly devices get obsolete or difficult to use with newer ones. They're okay for me to figure out, but for the inheritor...

You don't happen to have any proven use case already (I want to say testimonial)? Can foresee how useful that is.

Hopefully people will try out the testnet version and post their experience here soon. The problem with a program that requires the future is it will take some time to get feedback.

However, if you’re interested, I have two transactions that I completed so you can see for yourself that BTCapsule indeed works on mainnet.

This transaction had a locktime of 500000001. That is the minimum for a timestamped transaction with Bitcoin. Technically the minimum is 0, but since I’m creating two transactions within one timelocked address, I had to use 500M1. So this would be the sender_wallet:

https://blockstream.info/tx/35a9f0cfac3ec0acea1e67edb1419098a1274f4d150d0c4686de04edf9dcdd77

This is a transaction with a redeem date of 11-11-2022. BTCapsule takes the date and converts it to a UNIX timestamp, and blockstream converted the timestamp into a block height of 762710. This would be the receiver_wallet:

https://blockstream.info/tx/19ca6ceea6e150d37b5fab8b6491d882512c6465bed5f535f168e7fc8d20e529?expand

You're using a lot of empty lines, which makes it difficult to read. I fixed that for you: BTCapsule.py

Which version of python is this program based on?

It was rebuilt how exactly, and what was changed compared to older version of btcapsule?
As far as I can judge, nearly everything. It's now free, open-source, and perhaps even simple to use too. However, it's not reviewed and I'd avoid it when it comes to some serious thing as inheritance.

Since BTCapsule is now open source I think member BlackHatCoiner should consider changing his feedback on your profile.
Done.


Thank you very much for cleaning up the code! Looks great and my GitHub has been updated. BTCapsule was built with Python 3.9 on Windows.

I posted some transactions I made with BTCapsule to buwaytress if you’d like to check them out.

I didn’t realize there was even feedback on my profile lol. Thanks for removing it though. You were my biggest critic (rightfully so!) and I hope this version can offer me some redemption.

If you’re tired of seeing threads about BTCapsule, please keep reading because it has been completely rebuilt.
It was rebuilt how exactly, and what was changed compared to older version of btcapsule?
I would like to see how the problem with exact time and time servers was sold, and is it still possible to fake date and time to release lock.
Maybe it's better that you release code on github or gitlab since this is now open source software.

Since BTCapsule is now open source I think member BlackHatCoiner should consider changing his feedback on your profile.

BTCapsule no longer uses time servers or stores your personal private key. It now creates paper wallets and uses Bitcoin’s OP_CHECKLOCKTIMEVERIFY feature to timelock your bitcoin until any date you choose. So there’s no longer anything to hack into, and it’s impossible to redeem the timelock script before the date because the network won’t accept it.

The code is available on GitHub. Check it out:

https://github.com/BTCapsule/BTCapsule
45  Bitcoin / Project Development / Re: BTCapsule is a program to easily timelock your bitcoin for inheritance on: November 12, 2022, 01:09:35 PM
I am running out to a client site (Yeah...working on a Saturday) but from the tl;dr it looks like from what you are saying on the website that you are generating a raw TX to be transmitted.

How large a fee are you using? I'll look / test later or tomorrow but I can see that may be an issue way in the future if things change as to what will get mined.

Yes, this generates a raw transaction, so it is absolutely nothing like what I had before.

I do not calculate the fees within the program. On my website I mention that you must input a smaller amount of bitcoin in the BTC section than you originally added to the address.

Also, a statement somewhere on the website to print it out as an emergency backup would also be good.

Media standards change a lot, and since this could be over years and years I can see that being an issue. Try finding a 3.5" drive today, every machine had one 20 years ago, or a compact plash reader which was the most popular portable digital media 15 years ago, there are machines that only come with USB C ports now with no USB A. Plugging in that USB stick may just be an issue in 2040.......

Also, you don't want to not have your kids not get their BTC because that electronic storage device died.

Urging the user to print the wallet as a backup is a good idea. The txt files are required to use BTCapsules Sweep Wallet feature, but if something happens in the future, then a paper backup would be good to have.

I’m not too concerned with media standards changing. The program and files can easily be copied and moved to any storage device. It will be the responsibility of the users to make sure they keep those things updated; but if they don’t and they’re sitting on a few thousand $$ in BTC, the fact that it’s still possible to find a computer that uses 3.5" drives is reassuring.

Still, a really good project. Thanks for keeping up with it and updating it.

-Dave

Thanks for the encouragement! I learned a lot about Bitcoin working on this. I was ready to give up, but I’m determined to provide something for this community and hopefully get a Bitcoin job. I think you will like it. In case you didn’t see, there’s a testnet option on my GitHub.
46  Bitcoin / Project Development / Re: BTCapsule is a program to easily timelock your bitcoin for inheritance on: November 12, 2022, 10:55:22 AM
If you’re tired of seeing threads about BTCapsule, please keep reading because it has been completely rebuilt.

If so, i would recommend you to edit (to let people know about this thread) and lock older thread.

Okay, I have edited and locked the previous threads

I have also included a testnet version of the code, so if you have Python, feel free to test it out and see how it works.

I tested for a bit and found out clicking "Generate" button multiple times caused multiple address/private key shown on text box without separator. You might want to change the behavior.

Thanks for trying it out and letting me know. This has now been fixed.
47  Bitcoin / Project Development / BTCapsule is a GUI to timelock your BTC, and allows you to change your mind on: November 12, 2022, 03:55:42 AM
How it works

BTCapsule is an open-source program that can help timelock your bitcoin to a date of your choosing. You simply generate a P2SH address, add a date, the txid and vout number of your transaction, and the amount of BTC you sent to the address (minus miner fees).



This will create two folders with several files. You will get two separate paper wallets (sender_wallet.txt and receiver_wallet.txt).

The senders_wallet will contain a redeem script that can be used at any time to get your bitcoin back, just in case you ever change your mind. It also contains the master private key used to create the transactions.

The receiver_wallet will contain a timelocked redeem script that is not redeemable until the date you chose. They will also have their own private key to sweep the wallet.

Just copy the receiver_files folder to a flash drive and give it to your loved one. They will not get the bitcoin until you choose, and if you’re (hopefully) still alive when the timelock expires, just redeem from your sender_wallet and create a new transaction.

When you’re ready to redeem, just visit a blockchain explorer and broadcast the redeem script. Once it’s been confirmed, you can use BTCapsule’s Sweep Wallet feature.

Sweep Wallet

To sweep your wallet, make sure the wallet with your particular redeem script is in the same folder as BTCapsule. Run BTCapsule, enter an address and the amount of BTC you want to redeem (a little less than available if you want to pay miner fees), and it will create a new file called redeem.txt that can be broadcast on a block explorer.

You can download BTCapsule for Linux and learn more at:

https://btcapsule.com/

You can view the source code at:

https://github.com/BTCapsule/BTCapsule

I have also included a testnet version of the code, so if you have Python, feel free to test it out and see how it works.

UPDATE 11-15-2022

BTCapsule now creates two folders, sender_files and receiver_files, and puts the appropriate files in each folder. So now you just have to copy the receiver_files folder and paste it into a seperate USB flashdrive.

UPDATE 11-18-2022

BTCapsule (testnet) is now available for Linux! Try it out and let me know what you think.

When you download BTCapsule, you will have to right-click the file, select "Properties>Permissions" and check the box that says "Allow executing file as program" (Ubuntu). When you generate an address, Google "Bitcoin testnet faucet" and have coins sent to the generated P2SH address.

UPDATE 11-22-2022

BTCapsule (testnet) is now available for Windows!

Windows Defender may flag BTCapsule because it was made with PyInstaller. I do not have $500 for a signed-certificate right now. When you generate an address, Google "Bitcoin testnet faucet" and have coins sent to the generated P2SH address.
48  Bitcoin / Development & Technical Discussion / Re: What would be required to send fake information to getblockchaininfo? on: October 19, 2022, 06:22:13 PM
Short script which support JSON-RPC protocol and return fixed JSON file should do the job. I'm not web developer, but i'll share the script if i managed to create it within 1 hour.

It's much easier than expected. After read a tutorial[1] and library GitHub page[2], i managed to create one in less than 10 minutes. The fake data is based on testnet data with changed median time, but it can be changed to any JSON data.

Code:
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer
import jsonrpclib
jsonrpclib.config.version = 1.0

def getblockchaininfo(*args):
    return {
        "result": {
            "chain": "test",
            "blocks": 2377252,
            "headers": 2377252,
            "bestblockhash": "000000000000001116b19fd67c291a7fdf87810b2ff47b7d313940ee42f5c1b5",
            "difficulty": 67108864,
            "time": 1666169543,
            # fake mediantime
            "mediantime": 9999999999,
            "verificationprogress": 0.9999993333482174,
            "initialblockdownload": False,
            "chainwork": "0000000000000000000000000000000000000000000007d7c718524bc0ba7e52",
            "size_on_disk": 31445472022,
            "pruned": False,
            "warnings": "Unknown new rules activated (versionbit 28)"
        },
        "error": None,
        "id": "curltest"
    }

server = SimpleJSONRPCServer(('localhost', 8332))
server.register_function(getblockchaininfo)
server.serve_forever()

I tested it with curl and it works properly. FYI, the user and password could be any string.

Code:
$ curl --user random_text --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockchaininfo", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
Enter host password for user 'random_text':
{"result": {"result": {"chain": "test", "blocks": 2377252, "headers": 2377252, "bestblockhash": "000000000000001116b19fd67c291a7fdf87810b2ff47b7d313940ee42f5c1b5", "difficulty": 67108864, "time": 1666169543, "mediantime": 9999999999, "verificationprogress": 0.9999993333482174, "initialblockdownload": false, "chainwork": "0000000000000000000000000000000000000000000007d7c718524bc0ba7e52", "size_on_disk": 31445472022, "pruned": false, "warnings": "Unknown new rules activated (versionbit 28)"}, "error": null, "id": "curltest"}, "id": "curltest", "error": null}

[1] https://www.tutorialspoint.com/python_network_programming/python_rpc_json_server.htm
[2] https://github.com/joshmarshall/jsonrpclib

I am trying to hack my program with your code. It’s displaying some odd behavior, but I’m unable to view the private keys.

If I run the code by itself and open BTCapsule, I get this message in the console:

Code:
127.0.0.1 - - [19/Oct/2022 13:35:47] "POST / HTTP/1.1" 200 -

BTCapsule opens and says “Please Open Bitcoin Core and Restart BTCapsule”. So I open Bitcoin Core while your code is still running, and when I restart BTCapsule, it continues to alert me that I need to open Bitcoin Core. Every time I open BTCapsule, a new message is printed to the console like the one above.

So I started Bitcoin Core first, and then ran your code. If I do that, I get an error:

Code:
Permission Error: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

So BTCapsule is definitely talking to your program, but it’s not recognizing it as a valid Bitcoin Core implementation. I have tried this with and without internet enabled.

49  Bitcoin / Development & Technical Discussion / What would be required to send fake information to getblockchaininfo? on: October 19, 2022, 02:01:51 AM
I have created a program that uses getblockchaininfo to record the timestamp from Bitcoin Core. I have been asked several times if someone could create a fake Bitcoin blockchain and fake this information. I personally don’t know how to do this, but if someone has information that could help me try it, I would be willing to test it out.

My program requires using 127.0.01 IP address and port 8332, and this cannot be changed so that testnet is not an option.

What would be required to fake this information. Is it easy to do?
50  Bitcoin / Bitcoin Discussion / Re: What Happens to Our Bitcoin and Other Assets If We Die? on: October 18, 2022, 11:55:00 PM
I created BTCapsule to solve this problem. You can save it to a USB flash drive, enter a year and your private keys, and when the year comes to pass your private keys will be available to whoever you give it to. BTCapsule uses Bitcoin Core to get the timestamp from the most recent blocks, so it can be used offline and doesn’t rely on any centralized time protocol.

BTCapsule is open source, but on my website you can download an executable that is converted to C and compiled to machine code.

Here is the code:

https://github.com/BTCapsule/BTCapsule

Website:

https://btcapsule.com/
51  Bitcoin / Project Development / Re: BTCapsule is now FREE and logs year from Bitcoin Core’s mediantime on: October 18, 2022, 09:22:18 PM
Is there any difference in security of BTCapsule runing on Linux and wInD0ws operating system?
There are significant number of people who are using MacOS (maybe higher than Linux), so it would be good if you could add BTCCapsule software for MacOS.

I updated the OP to explain the difference in security. There’s not really a security difference, but since Linux is free, it’s much easier to dual-boot and destroy the OS. Sorry, I’m trying not to repeat myself because I keep getting messages from the mods and they have to edit my posts.

I’m working on a macOS version. It hopefully won’t take too long. I’m building all these ports in virtual machines, so it probably won’t work for Apple’s M chips until I can afford a new MacBook.


52  Bitcoin / Project Development / Re: BTCapsule is now FREE and logs year from Bitcoin Core’s mediantime on: October 18, 2022, 01:53:29 PM
Based on discussion on other thread[1], IMO you take wrong approach. When your target isn't technical or power user, you shouldn't ask them to install and configure Bitcoin Core manually. If you want to utilize median time on Bitcoin network, there are another approach such as connecting to several Bitcoin node, ask for recent block header and verify received block headers.

[1] https://bitcointalk.org/index.php?topic=5417145.msg61133095#msg61133095

I’m not really sure how to connect to other nodes and receive information without Bitcoin Core.

In short, you utilize P2P communication protocol[1] and implement SPV/basic verification functionally[2]. But honestly it's more complex compared by connecting to Bitcoin Core through JSON-RPC.

I think the steps to use BTCapsule are simple enough. They might have to wait a few days for Bitcoin Core to download to see the private keys, but it would be worth it.

The directions are:

1. Install Bitcoin Core
2. Choose Settings>Options>Open Configuration File
3. Add rpcuser=user rpcpassword=pass to configuration file and save
4. Wait for blockchain to download and view the keys

With the option to prune the blockchain, this shouldn’t be an inconvenience at all.

As i said, it depends on your customer target. People with bare minimum technology literacy will experience some difficutly. And talking about pruned node, do not forget that pruned node still download whole blockchain (with current size 432.91GB[3]). If they have slow hardware or internet, it could take weeks.



[1] https://developer.bitcoin.org/devguide/p2p_network.html
[2] https://en.bitcoin.it/wiki/Thin_Client_Security
[3] https://blockchair.com/bitcoin

I will look into this some more. Anything to make BTCapsule easier to use is great. I think the program works just fine though, and I feel like it’s extra secure with the new Linux version. I realize it will be annoying to wait for Bitcoin Core to download, but if you get a whole Bitcoin out of it, then it’s got to be worth the wait.
53  Bitcoin / Project Development / Re: BTCapsule is now FREE and logs year from Bitcoin Core’s mediantime on: October 17, 2022, 08:36:25 PM
I don't know much about python, but saw this:
Code:
			bitcoin = AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%("user","pass"))

info = bitcoin.getblockchaininfo()
date = info['mediantime']
If this does what I think it does, it's just as easy to fake as a time server: the user can simply fake a date on local port 8332.

I previously setup a fake local time server, and was able to hack the program when requesting the time from Google’s time servers. I can confirm that this hack no longer works.

BTCapsule is pulling the mediantime from Bitcoin Core. I’m sure you know this already, but this is the accepted timestamp compared to the previous 11 blocks. It’s written in Unix time and BTCapsule converts it to ISO format.

https://en.bitcoin.it/wiki/Block_timestamp

In order to hack the time, you would have to do what NotATether mentioned, as well as fake some blocks to get the mediantime. I would assume you need a lot more than 11 fake blocks for RPC to check, but this is well outside of my hacking knowledge.



Based on discussion on other thread[1], IMO you take wrong approach. When your target isn't technical or power user, you shouldn't ask them to install and configure Bitcoin Core manually. If you want to utilize median time on Bitcoin network, there are another approach such as connecting to several Bitcoin node, ask for recent block header and verify received block headers.

[1] https://bitcointalk.org/index.php?topic=5417145.msg61133095#msg61133095

I’m not really sure how to connect to other nodes and receive information without Bitcoin Core. I think the steps to use BTCapsule are simple enough. They might have to wait a few days for Bitcoin Core to download to see the private keys, but it would be worth it.

The directions are:

1. Install Bitcoin Core
2. Choose Settings>Options>Open Configuration File
3. Add rpcuser=user rpcpassword=pass to configuration file and save
4. Wait for blockchain to download and view the keys

With the option to prune the blockchain, this shouldn’t be an inconvenience at all.



OP, I think you're overlooking some important facts about basic network security. Simple TCP/IP wasn't designed with security in mind, and will always be susceptible to man-in-the-middle attacks unless the data being transmitted is properly encrypted.

As DaveF said in your other thread: "Anything that at any time needs an outside service that is an open standard is never going to be secure." For example, you can use packet-sniffing programs like Wireshark to capture, modify and re-send every packet that comes in and out of your application.


By the way, I think it would be better if you keep the discussion in one thread so that we can keep track of each other's comments.


Can Wireshark be used to capture information that is being sent within localhost without the internet enabled? The only thing being sent is the mediantime of the blocks from Bitcoin Core, and these are installed locally.

Also, this will be my last thread about BTCapsule. I will post all updates here. Changing the method of receiving the year was huge, and it’s my final attempt. Anything else will just be small upgrades.



It's going in a good direction and it's a work in progress so he can keep updating it as we give more suggestions.
EVERYTHING is going to have some sort of vulnerabilities so long as they are being addressed as they are discussed.

The point of doing it this way seems to be the fact that you can download core, disconnect from the net and have a bit more security.
Not 100% perfect, but getting better. It boils down to what I said and you commented on about TCP/IP and services.

But, it also gets back to having a hardware wallet and PIN is vulnerable to the $5 wrench. ($6 wrench with inflation)

-Dave

Thanks for the encouragement.

I’m working on porting BTCapsule to Linux so that the private keys can be entered and decrypted with a temporary Linux OS that can be deleted afterwards.

I looked into the $5 wrench, and it seems the only known protection is multi-sig. BTCapsule is not a wallet, and anything can be typed into the private keys sections.

If someone has three children, they could copy BTCapsule to three separate flash drives, type a different private key into each, and then require all the children to decrypt the keys.
54  Bitcoin / Bitcoin Technical Support / Re: Trouble pruning Bitcoin Core when installing to a USB drive on: October 16, 2022, 11:39:18 PM
--snip--
Yes, that was a mistake I made here, but my settings on the shortcut are correct. I’m wondering if the problem is my thumb drive is formatted to exFAT. I would have to delete everything and reformat the drive to see, but at this point, I think it would be easier to just install Bitcoin Core on the machine.

Bitcoin Core don't care about file system, so i doubt exFAT is the problem here. I've seen some people use FAT32 or exFAT on their external drive to store Bitcoin Core files without problem.

The reason I’m doing this is because it makes my program easier to use, but a little more difficult to setup. However, I think I might be introducing user and compatibility errors that are unnecessary, so I’m going to reevaluate.

Have you consider you might fell into XY problem? For example, if you just need to get recent block and your user don't care about privacy, you could just use few free API offered by block explorer rather than obtaining data from pruned Bitcoin Core.

I wanted Bitcoin Core to be stored on a USB with BTCapsule, but I changed my mind. It wouldn’t make sense to have an old version of the software, and it was causing way more problems than it solved. I don’t think asking someone to install Bitcoin Core themselves and add a few lines to the bitcoin.conf file is too complicated. Hopefully it will lead to more people running a full node. This is what I’ve been working on:

https://bitcointalk.org/index.php?topic=5417348.0
55  Bitcoin / Project Development / BTCapsule is now FREE and logs year from Bitcoin Core’s mediantime on: October 16, 2022, 11:17:04 PM
I’m sorry to create another post, but this is a significant upgrade.

BTCapsule is an open source Bitcoin time capsule for your private keys. I have been listening to the community, and I really think I have addressed all issues with the previous version.

BTCapsule now uses Bitcoin Core’s 'mediantime' to log the year from Bitcoin’s timestamp and decrypt your private keys. This actually solved two problems. Not only does BTCapsule use the only fully decentralized clock straight from the Bitcoin blockchain, but it also means BTCapsule never has to use the internet. This is not an API call to a centralized block explorer website. You can install Bitcoin Core, download the blockchain, and check the date offline.

I have also made BTCapsule free to download. If you find value in BTCapsule, please consider donating some sats on my website. I still have a lot to do; like port BTCapsule to Linux, work on the UI, and clean up the code. I also want to throw it out there that I would love to work in the Bitcoin industry if anyone is hiring. My style is dirtier than fiat money, but I will hack away at a problem until it’s solved.

You can view the source code here:

https://github.com/BTCapsule/BTCapsule

And to download BTCapsule that’s been converted to C and compiled to an .exe, please visit my website:

https://btcapsule.com

Update 10/19/22

Linux version has been temporarily removed

56  Bitcoin / Bitcoin Technical Support / Re: Trouble pruning Bitcoin Core when installing to a USB drive on: October 15, 2022, 12:19:23 PM
It's not because of the OS but the size set in prune setting.
In Linux you set 550MiB which is the minimum, in the first reply, it's only 500MiB which is below the minimum.
I assumed OP made a mistake typing 500 here, because his data directory kept growing so he didn't get an error.
It doesn't make sense the -prune=550 setting gets ignored though.

Yes, that was a mistake I made here, but my settings on the shortcut are correct. I’m wondering if the problem is my thumb drive is formatted to exFAT. I would have to delete everything and reformat the drive to see, but at this point, I think it would be easier to just install Bitcoin Core on the machine.

The reason I’m doing this is because it makes my program easier to use, but a little more difficult to setup. However, I think I might be introducing user and compatibility errors that are unnecessary, so I’m going to reevaluate.
57  Bitcoin / Bitcoin Technical Support / Re: Trouble pruning Bitcoin Core when installing to a USB drive on: October 15, 2022, 01:37:04 AM
I never heard of someone's success in using a Bitcoin core in a USB flash drive.
If your purpose is to use a Bitcoin core wallet for making transactions send and receive when needed then you need to make a bootable USB with OS and install bitcoin core there.
Or you can switch to Electrum portable one and put them into your USB thumb drive it's a lightweight wallet that doesn't need to download the blockchain.

Actually I’m just needing the smallest updated Bitcoin blockchain I can install for data and building applications. I intend to periodically plug in the USB and update the blockchain.

Everything else works fine. It has to see my bitcoin.conf file because the username and password work for bitcoinrpc.
58  Bitcoin / Bitcoin Technical Support / Re: Trouble pruning Bitcoin Core when installing to a USB drive on: October 14, 2022, 10:23:02 PM
3. Create a shortcut and set “Target” to “D:\Bitcoin\bitcoin-qt.exe -datadir=D:\Bitcoin”
Why don't you add -prune=550 to the command line?
Code:
  -prune=<n>
       blocks. This allows the pruneblockchain RPC to be called to
       manual pruning via RPC, >=550 = automatically prune block files
       ipc, leveldb, libevent, mempool, mempoolrej, net, proxy, prune,

Thank you. I added -prune=500, restarted Bitcoin Core, and I’ve been waiting to see what happens. It fluctuates, but I’ve lost about 4Gb of storage, so it doesn’t appear to be working. So far it’s taking about 20Gb of storage.
59  Bitcoin / Bitcoin Technical Support / Trouble pruning Bitcoin Core when installing to a USB drive on: October 14, 2022, 08:07:13 PM
I’m installing Bitcoin Core to a 32Gb thumb drive. These are the steps I took:

1. Choose my thumb drive “D:\” as the installer location

2. Refuse to let Bitcoin Core start automatically after setup

3. Create a shortcut and set “Target” to “D:\Bitcoin\bitcoin-qt.exe -datadir=D:\Bitcoin”

4. Open Bitcoin Core from shortcut and choose Settings>Options>Open Configuration File
 
5.bitcoin.conf:

Quote
server=1
 rpcallowip=127.0.0.1
 rpcuser=user
 rpcpassword=pass
 prune=550

When I closed Bitcoin Core, my debug.log file would say it’s checking D:\Bitcoin, but “bitcoin.conf not found, (skipping)”. Now my debug.log doesn’t offer any clues. It just shows the different blocks.

If I choose Settings>Options in Bitcoin Core Shortcut, it shows that prune is set to prune=550, so it must see the bitcoin.conf file.

However, my thumb drive has now used about 20Gb of storage and continues to fill up.
60  Bitcoin / Project Development / Re: BTCapsule- a Bitcoin Time Capsule- is now Open Source on: October 11, 2022, 09:59:50 AM
If someone sets up a fake NTP server, would they be able to replicate time.google.com’s IP address?
I can set any IP address I want on my local network Smiley

I realize this, but when I set my host file to use time.google.com’s IP address and try to run BTCapsule, it never starts. Which means I need to add another “Please enable internet” somewhere, but not opening at all is still enough to keep the private keys encrypted. When I change the IP address to my localhost, but keep time.google.com as the DNS, the program runs and alerts the user to turn on their internet.

I’m glad I decided to make it open source.
Doesn't that make it even easier for anyone to decrypt anything without waiting for a specific time server answer?

Not really. The Python code is open source, but for my .exe, the Python code is converted to C and compiled. From what I understand, it’s theoretically possible to decompile C code, but you can never get back all the information. At first I used PyInstaller, but I figured out I can extract the pyc files, change the HEX, make Decompyle++ from CMake, and extract the original code. I have searched through countless forums, and have not found a way to extract or decompile my exe with the method of compilation.
Pages: « 1 2 [3] 4 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!