@venezia is on PowPing!

PowPing is a place where you can earn Bitcoin simply by socializing, for FREE.
Never tried Bitcoin? It's OK! Just come, socialize, and earn Bitcoin.
Check out venezia's activities

Bitcoin Script

visit channel home
Total Economy: 0.02 USD
Do you know other ways to push a number onto the stack?
Using push data opcodes? Look in the ‘Constants’ section. https://wiki.bitcoinsv.io/index.php/Opcodes_used_in_Bitcoin_Script#Constants
venezia tipped:
0.01 USD
1 year ago
-1 is also 0x80 :) You can replicate OP_1NEGATE with: 0x01 0x80
venezia tipped:
0.01 USD
1 year ago
joe replied:
Oops, I made a error, I meant 0x81. Ugh, 0x80 is the sign bit so 0x80 on its own is just "negative zero". "negative 1" is 0x81.
venezia tipped:
0.01 USD
1 year ago
venezia replied:
oh, yes. We can use the bytes as number directly. The "OP_BIN2NUM" is basically trim the extra zero paddings.
joe tipped:
0.01 USD
1 year ago
joe replied:
Exactly
By the way, the bytes of number is little endian.