Tuesday, October 1, 2024

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

I do not fairly perceive how ordinals are in a position to retailer a lot information on chain. I do know concerning 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 permits individuals to tweak the general public key to embed a merkle root on chain by tweaking the general public key to create a modified deal with. Even then, the merkle root is not really saved on chain. You simply need to comprehend it to spend cash from that deal with proper?

I do know my understanding is improper 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 deal with within the UTXO gives an unlocking script consisting of the signature and public key. However that is just a bit bit of information that bitcoin transactions retailer, how does taproot enable for such bigger quantities of information to be saved?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles