forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on May 01, 2022, 12:32 pm

Title: How did testnet transaction b6714e05dd014cc92de09271886e62d85e7d41dd44fad417c520eb51d57f94c0 validate?
Post by: Bitcoin on May 01, 2022, 12:32 pm
How did testnet transaction b6714e05dd014cc92de09271886e62d85e7d41dd44fad417c520eb51d57f94c0 validate?

Testnet transaction c474c67cabc13f74c65e7cf503db971d5ba176794bff7de36f46d51ca675cf3a locked 0.0005BTC with a simple math script:


OP_2DUP
OP_ADD
5102
OP_EQUALVERIFY
OP_SUB
230d
OP_EQUAL

Transaction b6714e05dd014cc92de09271886e62d85e7d41dd44fad417c520eb51d57f94c0 spent that output with the sigscript:


ba07
6985

I can't see how (ba07 + 6985) == 5102 or (ba07 - 6985) == 230d.


What am I missing about Bitcoin script, integers, and math?


Source: How did testnet transaction b6714e05dd014cc92de09271886e62d85e7d41dd44fad417c520eb51d57f94c0 validate? (https://bitcoin.stackexchange.com/questions/113542/how-did-testnet-transaction-b6714e05dd014cc92de09271886e62d85e7d41dd44fad417c520)