Sure, you’ll be able to decide to knowledge this manner, however there’s nothing particular about Taproot right here.
The Pay-to-Contract development used to tweak the basis key in Taproot is mostly usable, and has actually been used for precisely this goal. Actually, it is among the mechanisms utilized in OpenTimestamps to decide to timestamped knowledge (together with a variant sign-to-contract which makes a signature decide to knowledge quite than a public key). It’s also utilized in Blockstream’s Liquid pegin mechanism, the place transfers from Bitcoin to Liquid pay to an handle derived utilizing a tweaked key of the federation, which commits to the switch info.
Actually, utilizing an extra leaf in Taproot for that is overkill, and would inevitably improve the depth within the Merkle tree for not less than one different leaf – leading to elevated spending price. Simply utilizing pay-to-contract or sign-to-contract immediately on one of many public keys concerned could be completed with zero price to on-chain spending insurance policies.
Would this not considerably cut back the price of providers like coloured cash, timestamping providers, and so on, which commit their knowledge immediately onto the chain?
First rate timestamping providers already use higher strategies.
For coloured cash it relies upon whether or not they simply want timestamping or precise publication of knowledge. My understanding is that it is usually the latter (as in any other case, they want one other censorship-resistant channel to switch the precise knowledge, which may then in all probability be used immediately).
