Understanding P2SH Transactions

6 replies 131 views
Posts: 23 · Reputation: 204
#1Sep 14, 2024, 04:42 AM
There are loads of P2SH addresses with non-zero balances, but they look like they were created using some bizarre redeem scripts. Any ideas on how to actually make transactions from these addresses? I tried sending from 3MiHYymaFeSj6B2oMQivWPgqhqHYmUyea3 to bc1q39meky2mn5qjq704zz0nnkl0v7kj4uz6r529at, but building the transaction manually is confusing. Tools like bitaps and cointoolkit didn’t help at all.
2 Reply Quote Share
m1kes4tFull Member
Posts: 167 · Reputation: 252
#2Sep 15, 2024, 07:20 AM
Check this out, it’s a solid resource for learning about redeem scripts. It really breaks things down well.
4 Reply Quote Share
mr_apeNewbie
Posts: 401 · Reputation: 35
#3Sep 17, 2024, 04:23 AM
How did you even find these addresses? That's wild.
1 Reply Quote Share
Posts: 23 · Reputation: 204
#4Sep 17, 2024, 09:59 AM
First, you gotta evaluate the redeem script. If it’s valid, you can complete the signature script to finalize everything. For instance, if you see 0a, that tells you there should be 10 bytes, but if there aren’t, then you hit a wall and the output can't be spent at all.
3 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#5Sep 17, 2024, 03:36 PM
So, you're trying to reverse-engineer these? I’ve been thinking about whether some of these were made by accident or for testing. I mean, is there even a decent tool out there for building P2SH scripts? Seems pretty sketchy.
2 Reply Quote Share
Posts: 23 · Reputation: 204
#6Sep 17, 2024, 06:33 PM
I think a lot of these were probably just experiments gone wrong or coding mistakes. Script evaluation adds a layer of security that can be bypassed, but it’s tricky.
1 Reply Quote Share
Posts: 23 · Reputation: 204
#7Sep 17, 2024, 09:16 PM
Yeah, I’m guessing they’re placeholders or something. Like this github link I found, it shows some brute-force stuff for P2SH.
4 Reply Quote Share

Related topics