Prefer bytes to Bytes

Co-authored-by: Vojtěch Strnad <43024885+vostrnad@users.noreply.github.com>
This commit is contained in:
Ethan HeilmanandVojtěch Strnad authored and GitHub committed 2023-12-15 09:54:50 -05:00
1 parent 945e2a3742
commit 7180c1cf8c
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ When evaluated the OP_CAT instruction:
# concatenates the popped values together, # concatenates the popped values together,
# and then pushes the concatenated value on the top of the stack. # and then pushes the concatenated value on the top of the stack.
OP_CAT fails if there are less than two values on the stack or if a concatenated value would have a combined size greater than the maximum script element size of 520 Bytes. OP_CAT fails if there are less than two values on the stack or if a concatenated value would have a combined size greater than the maximum script element size of 520 bytes.
==Motivation== ==Motivation==
Bitcoin tapscript lacks a general purpose way of combining objects on the stack restricting the expressiveness and power of tapscript. This prevents among many other things the ability to construct and evaluate merkle trees and other hashed data structures in tapscript. OP_CAT by adding a general purpose way to concatenate stack values would overcome this limitation and greatly increase the functionality of tapscript. Bitcoin tapscript lacks a general purpose way of combining objects on the stack restricting the expressiveness and power of tapscript. This prevents among many other things the ability to construct and evaluate merkle trees and other hashed data structures in tapscript. OP_CAT by adding a general purpose way to concatenate stack values would overcome this limitation and greatly increase the functionality of tapscript.