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

Future of Bitcoin encryption and security in a QC era

Possible rollback due to lazy reveal in BRC20?

A way to recover scammed Bitcoin investment