Bitcoin Forum
May 24, 2024, 02:57:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 27 28 29 30 31 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 ... 305 »
1521  Bitcoin / Bitcoin Technical Support / Re: Cannot obtain a lock on data directory /home/ywn/btc_data. on: October 09, 2022, 05:10:27 AM
Either close bitcoind first and start it with that -connect command line option...

Or use addnode RPC, use bitcoin-cli instead of bitcoind to use the command:
Code:
bitcoin-cli addnode "18.214.92.184:8333" "add"

But take note that addnode works differently than connect,
connect will exclusively use the selected node(s) while addnode will still enable your node to connect to other peers.
1522  Bitcoin / Bitcoin Technical Support / Re: "reconsiderblock" in Core multi-wallet on: October 09, 2022, 03:37:56 AM
The console said "Executing command using ... wallet", making it appear only one is affected.
I chose another wallet file and executed the same command again.

Despite of what it says, does it only affect the single selected wallet or all of them?
The message will appear regardless if the command used is a wallet rpc or not, if you're using the GUI.
That's just a note to mention which wallet is selected in the drop-down menu above it.
But will only appear once until another wallet is selected.

If "(none)" is selected, it will say "Executing command without any wallet" instead.

Reference code: github.com/bitcoin/bitcoin/blob/master/src/qt/rpcconsole.cpp#L1031-L1038

To see if a command is actually wallet-specific, enter help in the console;
Those under == Wallet == are the commands that affects only the selected wallet.
1523  Bitcoin / Electrum / Re: Bitcoin address gone after reinstaling Electrum wallet? on: October 09, 2022, 03:04:58 AM
Any update to your search for the address' origin?

You should also verify the binary/installer of your currently installed Electrum and see if the signature matches.
Follow this tutorial: bitcoinelectrum.com/how-to-verify-your-electrum-download/ (download only the signature file of the Electrum variant that you have)
If it passed, then you can rule-out the possibility that you have a fake Electrum.
1524  Other / Beginners & Help / Re: we have to be ready with taproot address on: October 09, 2022, 02:54:10 AM
That's if the wallet is a "descriptor wallet" and created with v23.0, otherwise the user has to manually import p2tr descriptor to their older descriptor wallets.
How to look the p2tr private key?
It's only available for descriptor wallets so you can't export individual private keys with dumpprivkey command.
But you can export its parent descriptor containing the master private key using listdescriptors true
1525  Bitcoin / Electrum / Re: Electrum Multisig Configuration fails - public general key false on: October 08, 2022, 11:35:01 AM
The latest Electrum versions only generates Native SegWit electrum seed by default, that includes the format of the master keys.
For example, the master public key that you're getting starts with "Zpub" intead of "xpub".

There's a workaround to convert the Zpub key but there must be a way indicate that the HD MultiSig wallet that you'll create in Green/Bitpay is Native SegWit.
To convert the Zpub key, go to "Console" tab (View-Show Console), then type:
Code:
convert_xkey(xkey="ZprvAWgYBB.....wCND7HYcZr",xtype="standard")
Replace "ZprvAWgYBB.....wCND7HYcZr" with your master public key.

However, Bitpay is using an exclusive "Invitation Code" instead of xpub so it may not work.
Green on the other hand, doesn't have such option only their "MultiSig Shield" or it's only available in the IOS version which I do not have.
1526  Other / Beginners & Help / Re: we have to be ready with taproot address on: October 08, 2022, 07:29:00 AM
Now, in Bitcoin Core version 23.0, it's as easy as selecting "Bech32m (Taproot)" in send tab's drop-down menu.
That's if the wallet is a "descriptor wallet" and created with v23.0, otherwise the user has to manually import p2tr descriptor to their older descriptor wallets.
1527  Bitcoin / Electrum / Re: Bitcoin address gone after reinstaling Electrum wallet? on: October 08, 2022, 07:02:48 AM
4. The 12-word seed phrase was created from Electrum when i first started the wallet,and it is the same. When i tried to restore the wallet with the 12-word seed phrase, there was no coins there.
Take note that you can create multiple wallet files in Electrum, it's not limited to one.
The seed phrase may be correct and will restore your first wallet, but you may have been using a different wallet when you copied an address to receive your bought bitcoins.

1.No,the coins went first to the address that i wanted,but then they moved.
Also, even if it's sent to another wallet, the coin shouldn't be moved by itself otherwise, someone owns the key of that address.
If not clipboard malware, I suspect that it may be a watching-only imported Electrum wallet that you previously created with address that you've copied somewhere.
Your answer alone is enough to tell that it doesn't belong to your wallet.

The question is: who owns that address?
Review some chat/email/conversation to see if it's from someone you know (maybe someone you've sent bitcoin before, a contact or an exchange deposit address).
1528  Bitcoin / Development & Technical Discussion / Re: Exposed ... Mistakes or ... on: October 07, 2022, 11:11:49 AM
I'm not sure I understand where's the problem (as in 2022);
I think he's presuming that there could be a centralized service or exchange that have a broken implementation of HD wallet which produces the child keys in series instead of the standard implementation.

In fact, all of the addresses he presented belong to a single wallet according to walletexplorer: walletexplorer.com/wallet/00113e9c26df0947/addresses
Having a total of 6,023 linked addresses suggests that it's indeed an exchange or service provider.
1529  Bitcoin / Bitcoin Technical Support / Re: How to invalidate a block on: October 07, 2022, 07:07:22 AM
So I just tried it. And I get a "Empty response". What does that mean?
That's the response if that command is executed successfully.
Otherwise, it'll return with "Block not found", "blockhash must be of length 64" or other errors.

You can immediately see that the block is invalidated in bitcoind with the lines InvalidChainFound: invalid block=n or in the logs (debug.log) file.
1530  Bitcoin / Electrum / Re: BTC MISSING INVESTIGATION - ELECTRUM WALLET on: October 06, 2022, 04:07:21 AM
-snip-
Honestly the last justification I want to resort to is that my friend did something dishonest.
To be fair, if your friend is innocent, he will indeed see 0.004BTC incoming to his Electrum wallet from his perspective.
However, if the "hacker" sent 0.004 to your friend to trick that he have received short amount.
That hacker should at least know your deal's situation because otherwise, no hacker would send some of his "income" to the intended receiver.

For now, check your previous conversation to know who's to blame regarding the missing funds.
If the address bc1qcj3f0kllhwctsvgud4k9zv5gxqf574fm2qlj5t was given by him, then it's his fault.
If he's given you the address bc1qfg0a4ns3z4ud2d90t8hfgc2a2x6j65y7j3rnsa instead, it's your fault.


And I've also read the replies in the Reddit thread.
Take note that even if blockexplorers say that it's "change address" it doesn't mean that it's true because the tag is only based from guesswork.
For example, in the txn between the two addresses in the OP, the sent amount is 0.004 which is a "round amount" while the other received 0.01005506 which is an "exact amount".
Most blockexplorers will tag the one that received the exact amount as the change because wallets usually send the change up to the last satoshi while the receiver usually receives round amount.
1531  Bitcoin / Development & Technical Discussion / Re: Pls Help!! How to get an outpoint in a transaction? #blockchain on: October 05, 2022, 12:52:21 PM
I take the json object itself from blockchain.info
Code:
-snip-
You can't get it from that transaction.
You can get it from this transaction: blockstream.info/tx/ed9ed571d9213cb62f019e0e8d93ab3854c97237512797f9b3bef41ec378bced?output:22 which is what that outpoint is referring to.

You or your wallet should already know that hash in order to "add it to the structure", you can't get it from the transaction being built
For example, you can get a txid from your wallet's inbound transactions which you can also get with listunspent RPC, then use the txid of the one you want to spend as the outpoint.
1532  Bitcoin / Electrum / Re: BTC MISSING INVESTIGATION - ELECTRUM WALLET on: October 05, 2022, 12:21:33 PM
Lastly, investigate if he's telling the truth.
I feel the receiver is trying to trick the OP.
-snip-
OP's friend made a transaction from bc1q...j5t to bc1q...nsa without knowing all bitcoin transactions are public and it's very east to track the fund.
I also followed-up a question to that because I don't know if OP's friend is the poster of a Reddit thread with the same title (link),
Because for some reason, this topic has "friend" as the receiver while the original Reddit thread is all first person.
1533  Bitcoin / Development & Technical Discussion / Re: Pls Help!! How to get an outpoint in a transaction? #blockchain on: October 05, 2022, 11:49:07 AM
-snip-
This is understandable, but how to get this hash from json?

ed9ed571d9213cb62f019e0e8d93ab3854c97237512797f9b3bef41ec378bced

Code:
{
    "hash": "4aca2e7e393b04e6b9dfbafd8bc2605c5547c49bb7de55029b76da8f884a4306",
...
}
It's already in json format so the transaction's txid should be already available.
In that specific case, it's the line that I left in the code snippet, it's the same as the one in my example.

Now I saw where the confusion is.
The "hash" ed9ed571d9213cb62f019e0e8d93ab3854c97237512797f9b3bef41ec378bced is the txid of the input of that example transaction.
You can't get that hash from that transaction's sha256d result, it's only referencing that txid (& vout) to find the UTXO that it's trying to spend.

What we want to get is the hash 4aca2e7e393b04e6b9dfbafd8bc2605c5547c49bb7de55029b76da8f884a4306 in order to spend the example output.
Like here, where it's spent: blockstream.info/tx/13fb6a1f56cd383ecbf90fd5b9463553f2fa4cacff34eb5ba99d991e4f74f6c4
As you can see, the first input is referencing 4aca2e7e393b04e6b9dfbafd8bc2605c5547c49bb7de55029b76da8f884a4306 (vout: 0).
1534  Bitcoin / Electrum / Re: BTC MISSING INVESTIGATION - ELECTRUM WALLET on: October 05, 2022, 05:42:24 AM
I recently sent 2 transactions from my Coinbase account to my friends Electrum Wallet address:
My best guess is, the address bc1qcj3f0kllhwctsvgud4k9zv5gxqf574fm2qlj5t is from an imported wallet.
The key point is the transaction that spent one of your deposit returns the 'change' to the same address which is the default behavior of imported wallets.
The receiver bc1qfg0a4ns3z4ud2d90t8hfgc2a2x6j65y7j3rnsa which belongs to your friend's wallet however, looks like from a standard wallet based from its txn history.
Also, the two addresses couldn't be from the same wallet because the last transaction wouldn't make sense (otherwise, sent to the same wallet).

Some things he can try:

Maybe he has two or more wallet files?
And forgot that he received it to the other wallet and sent 0.004 to the other.
He can check it in the menu: "File->Open".

He can try to generate more addresses and see if it'll show up:
Go to 'Console' tab ("View->Show Console" to enable), then type: [wallet.create_new_address(False) for i in range(1000)]
But as I mentioned, it might not be in the wallet where bc1qfg0a4ns3z4ud2d90t8hfgc2a2x6j65y7j3rnsa belongs.

Lastly, investigate if he's telling the truth.
Is your "friend" an acquaintance or just someone you have contact with?
1535  Bitcoin / Development & Technical Discussion / Re: Pls Help!! How to get an outpoint in a transaction? #blockchain on: October 05, 2022, 03:18:49 AM
How to get an outpoint in a transaction?
I'm trying to parse the structure of an unprocessed transaction.
-snip-
Help me figure it out.
Can you give an example of generating this hash?
Here's an example then:
Let's say you want to spend the first output of this transaction: blockstream.info/tx/4aca2e7e393b04e6b9dfbafd8bc2605c5547c49bb7de55029b76da8f884a4306
The short version is, that's the TXID that should be used in your transaction input's outpoint.

The long version is, you can get that by hashing (SHA256D) the to-be-spent RAW transaction;
for SegWit, witness data should be omitted first.
getrawtransaction 4aca2e7e393b04e6b9dfbafd8bc2605c5547c49bb7de55029b76da8f884a4306:
Code:
02000000

 ↓----Witness----↓
0001
 ↑----Witness----↑

01
edbc78c31ef4beb3f99727513772c95438ab938d0e9e012fb63c21d971d59eed
16000000
17
160014bfe3f2baee0e4e0acb9a09564d85f95f64a08644
fdffffff
02
a086010000000000
22
5120c7da8b195d9e93cb321000adfd2c56ffe30969780cf4e09b782966e38d76761d
70e1080000000000
16
0014eee8c12b1093ef4780509809116f931b1fc6ea5a

 ↓----Witness----↓
02473044022002a98b8b8745339ddeb3d485e240035ab4e42e5836ea3cbe6b324a13cd8b8334022062e8e047e1dcb4a7d9f826ca8194be66a116108021fe7e7139fec22ef5f677b6012102dcfa3aff14e12c8eb96f3cf03880aca6ba451798533f58bd30de8eac93fc047c
 ↑----Witness----↑

dc8b0b00
Without the witnesses, you'll be left with:
Code:
0200000001edbc78c31ef4beb3f99727513772c95438ab938d0e9e012fb63c21d971d59eed1600000017160014bfe3f2baee0e4e0acb9a09564d85f95f64a08644fdffffff02a086010000000000225120c7da8b195d9e93cb321000adfd2c56ffe30969780cf4e09b782966e38d76761d70e1080000000000160014eee8c12b1093ef4780509809116f931b1fc6ea5adc8b0b00
SHA256:                    19911b5338814ae41175533e224bfdadbe1319f78c194659baaa4ac80fbb9f91
SHA256:                    06434a888fda769b0255deb79bc447555c60c28bfdbadfb9e6043b397e2eca4a
Reverse byte order: 4aca2e7e393b04e6b9dfbafd8bc2605c5547c49bb7de55029b76da8f884a4306

A few references:
1536  Bitcoin / Wallet software / Re: Found an old BIP38 paper wallet and could use some help on: October 04, 2022, 04:34:30 AM
About 5 or 6 years ago a friend of mine was helping get into Bitcoin. He generated a paper wallet and ask me a passphrase to encrypt. I put some fraction of a Bitcoin on and totally forgot about it.
-snip-
With which character does your private key starts? 6, 5, K or L?
Because the "passphrase" might be for Brainwallet, not for BIP38 private key and you might have a bare WIF prvKey all along.

If it's any of the above but "6", it not encrypted.
1537  Bitcoin / Bitcoin Technical Support / Re: How to detect 'change' transactions on: October 03, 2022, 01:37:30 PM
-snip- Is there a way to detect 'change' transactions' and if so, how? Thanks
There's no definitive way to detect which output (not another txn) is the change.
In the blockchain, the output for the change does not differ from the actual sent amount's output.
There's no label, mark or data that will tell that it's the change.

All you can do is to "guess" based from the common characteristics of a change output.
Example: https://en.bitcoin.it/wiki/Privacy#Change_address_detection
Take note that most privacy-oriented bitcoin users rarely make those mistakes.

Or pay for services that could do blockchain analysis reliably (but still not 100% accurate).
1538  Bitcoin / Bitcoin Technical Support / Re: Can't import a bech32 address to an existing wallet on: October 03, 2022, 05:55:36 AM
It is intended insofar as descriptor wallets do not distinguish between watchonly and spendable internally as legacy wallets do. This distinguishing happens at the wallet level now rather than at a script level, so wallets are watchonly, not items contained within a wallet.
Thanks for the clarification.

@darkv0rt3x In addition to only having the public key, (based from the above) Creating a descriptor wallet with "Disable Private Key" option will make the wallet watching-only.
In my quick test, it wont accept a descriptor with privKey.
On the other hand, a descriptor wallet with private keys enabled wont accept the example descriptor in my test since it only has a pubKey.
1539  Bitcoin / Bitcoin Technical Support / Re: Can't import a bech32 address to an existing wallet on: October 03, 2022, 03:35:38 AM
Edited 1;
The imported address says it is "iswatchonly": false,, this means it has the PKs available?I thought this would be a WatchOnly address! Can anyone clarify this, please?
But the descriptor only contains the pubKey, as you can see in the getaddressinfo's result, it's the same as the pubKey.
Also, when you go to the send tab, you won't have any option to "Send" but only "Create Unsigned".

I wonder if showing that it's "iswatchonly": false, is a bug or intended.
1540  Bitcoin / Bitcoin Technical Support / Re: Electrum Watch only wallet I am NEW to this NEED HELP on: October 02, 2022, 04:53:09 AM
-snip- THEN the amount that was in it from last night tripled.
Are you being contacted by someone who made you import that address or install the wallet?
Because that's a typical scam method: to make the victim deposit to a watching-only wallet,
then the scammer will send more funds to the wallet to increase the displayed balance in order to "encourage" the victim to deposit more.
But since it's a watching-only wallet, only the the owner of the private key (the scammer) will be able to spend those bitcoins.

MY 1st question was how do you go from WATCH only to STANDARD.
It's not possible
Since if it is, anyone can just get a random address with huge funds from a blockexplorer and import it to Electrum, then turn it into 'Standard'.

If you know its private key or seed phrase of the wallet where it belongs, restore a new wallet (File->New/Restore);
And select the necessary option depending if you have a seed phrase (Standard->I already have a seed) or private key (Import bitcoin addresses or private keys).

But before using the wallet, make sure to check if you're using a legit Electrum wallet by verifying its digital signature (as well as your PC's security).
Be careful since there are a lot of fakes and IDK if the "confusion" in your post is due to using a fake wallet or really just a confusion.
Verification tutorial here: bitcoinelectrum.com/how-to-verify-your-electrum-download/
Pages: « 1 ... 27 28 29 30 31 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 ... 305 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!