Pages:
Author

Topic: spend P2SH redeem script - page 2. (Read 467 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 07, 2023, 06:25:47 AM
#13
But it is an interesting way to scam. Create said address, send funds to it, keep selling the private key.
One problem: the buyer can sell it too Wink

Quote
If the person who created this and sent the funds to it sold it 100 times between $500 and $1000 they have made a lot of money.
Second problem: the buyer won't understand how to use this private key, and thus can't easily verify it belongs to that address. Considering OP's history on this forum, I don't think he created this on his own. Which means that whoever created it spread it already. This address is mentioned on Reddit in a 2 years old post, but it doesn't add anything. I'm curious what's the story behind this.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
June 07, 2023, 06:15:13 AM
#12
So, how can one avoid a situation like this where people send money to your address with a vicious timelock.
That's easy to avoid: don't create addresses with a vicious timelock Wink

But it is an interesting way to scam. Create said address, send funds to it, keep selling the private key.
P. T. Barnum:
Quote
"There's a sucker born every minute"

Think about it, how many people are greedy and just don't know that this really cannot be undone.
If the person who created this and sent the funds to it sold it 100 times between $500 and $1000 they have made a lot of money.
Sigh....humanity.....

-Dave
legendary
Activity: 2268
Merit: 18771
June 07, 2023, 03:05:01 AM
#11
So, how can one avoid a situation like this where people send money to your address with a vicious timelock.
As Loyce says, don't create the address in the first place.

As I explained above, the address in question is generated from a script which contains a timelock. For you to have such an address, you would have to specifically create it. It's not the case where a regular address can be turned in to a timelocked address, nor for me to send coins to your regular address and specify how or when you are allowed to spend them in the future.

This was a mistake on behalf of the person who created that address, not on behalf of the person who sent coins to that address.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 07, 2023, 02:16:26 AM
#10
So, how can one avoid a situation like this where people send money to your address with a vicious timelock.
That's easy to avoid: don't create addresses with a vicious timelock Wink
member
Activity: 162
Merit: 65
June 07, 2023, 01:43:27 AM
#9
i have read that poolin pool have broadcast in the past...non standard tx with hight fees as compensation
That might have been an uncompressed Segwit input, that's different.

Quote
if you try to put signed tx on the site for broadcast i have error 64 no final
that error is for "lock_time": 7140000 ...this number is not possible change more
is there any solution?
Option 1: whoever has access to 39QWbnkbcPFcrJFEB6yvVDc12eX5zqVt3y can create a new transaction.
Option 2: if you own 3QNHG5gAs2pfLFQUsNnoCh8UjHoX9cZBEa, you'll have to wait about 125 years (and hope the owner of the sending address doesn't move the funds before that).
Option 3: petition for Bitcoin to mine blocks faster.

So, what's the story behind this transaction? Someone's pranking you?

So, how can one avoid a situation like this where people send money to your address with a vicious timelock.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
June 06, 2023, 03:02:53 PM
#8
If you look at the OPs posts they are all about getting coins from wallets / private keys.

https://bitcointalksearch.org/topic/btc-privatekey-with-lost-the-last-6-characters-5438141
https://bitcointalksearch.org/topic/selling-85-btc-walletdat-from-bitcoin-core-5260282
https://bitcointalksearch.org/topic/sell-walletjason-with-6000-eth-with-lost-password-5414773
https://bitcointalksearch.org/topic/help-get-rzs-value-error-offer-bounty-if-recover-btc-5416193

And so on.

IIRC the original transaction was discussed back when it was created, but it could have been another one with a really long lock by a script. There are a couple of them out there.
Wonder if it's a mistake or for some other reason.

-Dave
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
June 06, 2023, 03:00:00 PM
#7
In case it isn't clear enough yet, your transaction is invalid until block 7,140,000.

Did you write this yourself? I mean, individually, without using some reputable wallet software. Or did you use such, but deliberately entered 7140000 in the LockTime field? Seems to me like you wanted 714,000 and an extra zero slipped through you.  Tongue
legendary
Activity: 2268
Merit: 18771
June 06, 2023, 01:51:40 PM
#6
This goes above my head... Does this mean someone created an input that's impossible to spend this century?
Take the script OP shared above:

Code:
483045022100a688c15bad1efdadf609c898421cca929da4c2f27fc97fc3dce018228c81460c02203f876bb82dcdd6cdddf36f44f14df38904759ee8d163b69800fffd0665ee292e014903a0f26cb17541045332b5e3bcaeef3a062b49d5129ac21017d369e9c52c2f12c472d8d6236e2f5116b580dd1f99fd9b321d9207c9a512f301c263bd58238dbbebf469675e09a2b2ac

Breaking that down, we get the following:

48   -   Size of script (72 bytes)
30   -   Header byte indicating signature
45   -   Push 69 bytes to the stack
02   -   Header byte for R
21   -   Length of R (33 bytes)
00a6....460c   -   R
02   -   Header byte for S
20   -   Length of S (32 bytes)
3f87....292e   -   S
01   -   SIGHASH_ALL
--------------------------------
49   -   Size of script (73 bytes)
03   -   Push 3 bytes to the stack
a0f26c   -   Little endian encoding of 7,140,000
b1   -   OP_CHECKLOCKTIMEVERIFY
75   -   OP_DROP
41   -   Push 65 bytes to the stack
0453....a2b2   -   Uncompressed public key
ac   -   OP_CHECKSIG

Looking at the second half of this script - if we haven't hit the necessary block as specified, then OP_CHECKLOCKTIMEVERIFY will terminate the script with an error. If we have reached the necessary block, then OP_CHECKLOCKTIMEVERIFY will verify, OP_DROP will clear the stack, and then all that is left will be the pubkey and OP_CHECKSIG as it would be in a old school P2PK output.

Now, if we take that part of the script:
Code:
03a0f26cb17541045332b5e3bcaeef3a062b49d5129ac21017d369e9c52c2f12c472d8d6236e2f5116b580dd1f99fd9b321d9207c9a512f301c263bd58238dbbebf469675e09a2b2ac

Take the RIPEMD160(SHA256(script)):
Code:
54A1DF7BE7557E2FD2F65CA45FF541EE363A0085

Add the network byte 0x05, and then compute and append the checksum:
Code:
0554A1DF7BE7557E2FD2F65CA45FF541EE363A00858CD8A9D8

And then encode in Base58:
Code:
39QWbnkbcPFcrJFEB6yvVDc12eX5zqVt3y

So all coins sent to the address 39QWbnkbcPFcrJFEB6yvVDc12eX5zqVt3y are locked by the above script, meaning they can only be spent when we hit block 7,140,000.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
June 06, 2023, 11:34:52 AM
#5
This goes above my head... Does this mean someone created an input that's impossible to spend this century?
Yes.

Basically the same as: https://coinb.in/#newTimeLocked
Tick "blockheight", then set 7140000 in the blockheight box below it.
As the matter of fact, it produces the same script which uses pubKey in contrary to others which uses pubKeyHash.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 06, 2023, 11:25:27 AM
#4
Option 1: whoever has access to 39QWbnkbcPFcrJFEB6yvVDc12eX5zqVt3y can create a new transaction.
Unfortunately, the "7140000 locktime" isn't the transaction's locktime but the locking script's.
This goes above my head... Does this mean someone created an input that's impossible to spend this century?
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
June 06, 2023, 10:45:37 AM
#3
i have read that poolin pool have broadcast in the past...non standard tx with hight fees as compensation
Yours is actually standard in the current protocol but your nLocktime isn't less than the LOCKTIME_THRESHOLD which made it "lock-by-blockheight".
So you'll have to wait for block height 7140000 or the Bitcoins locked in that script cannot be spent.

It's a different scenario this time since they do not have to change anything in Bitcoin to include the "uncompressed SegWit" transaction in their block.
All they had to do is accept that said transaction to their mempool to be included to their block.

Only miners with nodes before BIP-65 implementation may consider your transaction non-standard but valid;
But AFAIK (CMIIAW), the block will be rejected by new nodes.

Option 1: whoever has access to 39QWbnkbcPFcrJFEB6yvVDc12eX5zqVt3y can create a new transaction.
Unfortunately, the "7140000 locktime" isn't the transaction's locktime but the locking script's.

For reference, here's the input's Redeem Script:
Code:
7140000 OP_CHECKLOCKTIMEVERIFY OP_DROP OP_CHECKSIG
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 06, 2023, 10:02:45 AM
#2
i have read that poolin pool have broadcast in the past...non standard tx with hight fees as compensation
That might have been an uncompressed Segwit input, that's different.

Quote
if you try to put signed tx on the site for broadcast i have error 64 no final
that error is for "lock_time": 7140000 ...this number is not possible change more
is there any solution?
Option 1: whoever has access to 39QWbnkbcPFcrJFEB6yvVDc12eX5zqVt3y can create a new transaction.
Option 2: if you own 3QNHG5gAs2pfLFQUsNnoCh8UjHoX9cZBEa, you'll have to wait about 125 years (and hope the owner of the sending address doesn't move the funds before that).
Option 3: petition for Bitcoin to mine blocks faster.

So, what's the story behind this transaction? Someone's pranking you?
newbie
Activity: 78
Merit: 0
June 06, 2023, 09:17:29 AM
#1
thanks all...closed
Pages:
Jump to: