summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Heilman <ethan.r.heilman@gmail.com>2023-12-14 23:45:04 -0500
committerGitHub <noreply@github.com>2023-12-14 23:45:04 -0500
commit848352f40875e43ba7fd5ecabb63272f165fcd4a (patch)
tree28310689aa803b6d6f23a88a287ca3e382c0c036
parentc5d66d670671dbac8265b5588f3de8e1ca4f3972 (diff)
downloadbips-848352f40875e43ba7fd5ecabb63272f165fcd4a.tar.xz
Phrasing
Co-authored-by: kallewoof <kalle.alm@gmail.com>
-rw-r--r--bip-???-cat.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-???-cat.mediawiki b/bip-???-cat.mediawiki
index c84680a..d921524 100644
--- a/bip-???-cat.mediawiki
+++ b/bip-???-cat.mediawiki
@@ -23,7 +23,7 @@ When evaluated the OP_CAT instruction:
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==
-Bitcoin tapscript lacks a general purpose way of combining objects on the stack restricting the expressiveness and power of tapscript. For instance 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.
OP_CAT aims to expands the toolbox of the tapscript developer with a simple, modular and useful opcode in the spirit of Unix <ref>R. Pike and B. Kernighan, "Program design in the UNIX environment", 1983, https://harmful.cat-v.org/cat-v/unix_prog_design.pdf</ref>. To demonstrate the usefulness of OP_CAT below we provide a non-exhaustive list of some usecases that OP_CAT would enable: