Questions tagged [op-pushdata]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
95 views

Is it correct to use OP_PUSHDATA1 to encode data less than 76 bytes?

According to https://en.bitcoin.it/wiki/Script#Constants, for data between 1-75 bytes, the length byte is directly appended to the data, without any OP_PUSHDATA op-codes. However, I noticed that in ...
Simon L's user avatar
  • 111
3 votes
1 answer
253 views

Tx with OP_RETURN with 77 bytes of data refused by node

A transaction with a 77 bytes OP_RETURN is refused, but with shorter data (e.g. 74 bytes) is accepted, although up to 80 bytes should work. What is the safe limit to be used? Per these references the ...
OptOut's user avatar
  • 344
1 vote
1 answer
229 views

What OP_CODEs would push 254 bytes of data?

From BIP62 I would expect to use OP_PUSHDATA1 followed by uint8_t: Pushing 76 to 255 bytes must use OP_PUSHDATA1. But then from this answer, the link to variable-length integer makes it seem that a ...
Darius's user avatar
  • 789