b out Converts numeric value a into byte sequence of length b. Known as OP_LEFT before 2018-05-15.
>OP_BIN2NUM 129 0x81 x out Converts byte sequence x into a numeric value. Known as OP_RIGHT before 2018-05-15.
This says that these opcodes were called OP_LEFT and OP_RIGHT before being reimplemented on Bitcoin Cash. But the descriptions are very different from these.
https://en.bitcoin.it/wiki/Script
OP_LEFT 128 0x80 in size out Keeps only characters left of the specified point in a string. disabled.
OP_RIGHT 129 0x81 in size out Keeps only characters right of the specified point in a string. disabled.
Is that a mistake or do I not understand something?
Reference.cash is wrong. OP_NUM2BIN uses the opcode of the removed OP_LEFT. But they are different things. Also reference.cash category for OP_NUM2BIN is wrong, they copied and pasted it from the btc script document.
If you have time an issue & of for this would be good
time is one of those luxuries that seems to perpetually elude me 😁
oh? I didn't notice, gonna make a PR for that
teble here is correct https://documentation.cash/protocol/blockchain/script#splice
John noticed, good catch @Beta_Dollar
Обсуждают сегодня