We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6048fc8 commit 37dd375Copy full SHA for 37dd375
src/Script/Factory/OutputScriptFactory.php
@@ -193,4 +193,12 @@ public function witnessCoinbaseCommitment(BufferInterface $commitment): ScriptIn
193
new Buffer("\xaa\x21\xa9\xed" . $commitment->getBinary())
194
]);
195
}
196
+
197
+ public function taproot(BufferInterface $key32): ScriptInterface
198
+ {
199
+ if ($key32->getSize() !== 32) {
200
+ throw new \RuntimeException('Taproot key should be 32 bytes');
201
+ }
202
+ return ScriptFactory::sequence([Opcodes::OP_1, $key32]);
203
204
0 commit comments