Sunday, December 22, 2024

merkle tree – How can taproot transactions handle to retailer a lot information?

I do not fairly perceive how ordinals are capable of retailer a lot information on chain. I do know in regards to the ordinals envelope.

OP_FALSE 
OP_IF
   OP_PUSH "ord"
   OP_PUSH 1
   OP_PUSH "textual content/plain;charset=utf-8"
   OP_PUSH 0
   OP_PUSH "Good day, world!"
 OP_ENDIF  

Based on the ordinals handbook, on this instance, the textual content “Good day, world!” is saved on chain. However I believed that the taproot improve merely allows individuals to tweak the general public key to embed a merkle root on chain by tweaking the general public key to create a modified handle. Even then, the merkle root is not truly saved on chain. You simply need to understand it to spend cash from that handle proper?

I do know my understanding is mistaken as a result of if all you wanted to know to spend cash from the script path was the merkle root you would not must know the hash of any of the leaves.

I do know that bitcoin transactions have some code for scripting within the precise hexadecimal transaction. For instance a easy locking script in a bitcoin transaction output seems like this “scriptPubKey”: “OP_DUP OP_HASH160 HASH_OF_PUBKEY_IN_HEX OP_EQUALVERIFY OP_CHECKSIG” so to spend that transaction whoever has the personal key of the handle within the UTXO offers an unlocking script consisting of the signature and public key. However that is just a bit bit of knowledge that bitcoin transactions retailer, how does taproot enable for such bigger quantities of knowledge to be saved?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles