What does OP_CAT do with integers?

I don't see any mention of integer handling in the OP_CAT BIP. It simply states:

Given the stack [x1, x2], where x2 is at the top of the stack, OP_CAT will push x1 || x2 onto the stack

If x1 and x2 are byte vectors this makes sense. But what happens if one or both of the top stack elements are integers?

Are they automatically converted to byte vectors somehow, or would this result in a script execution error?



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/jLpIGix
via IFTTT

Popular posts from this blog

Bitwise Clients Pour $69M Into Solana as Bulls Fight to Reclaim $200 Resistance Zone

The XRP Roadmap: Ripple President Reveals The Next Big Steps

How to compute MAST commit bytes in bitcoin payment?