I need to embrace some random (for me it’s not actually random 🙂) information when unlocking an UTXO.
I want to hold the spending secured by a basic signature.
At first, I thought of utilizing P2WPKH, however from what I perceive, the witness should comprise precisely two components (the signature and the general public key). If there are extra, the transaction turns into invalid.
1.Am I right?
Then I thought of utilizing a basic P2PKH, the place within the scriptSig I might add my information first (e.g. a easy push of 20 bytes), earlier than the signature and the general public key.
This could protect safety, as a result of after script execution solely the top-level stack ingredient is checked, so my further information wouldn’t trigger any situation.
2.Am I right?
Nonetheless, I additionally discovered that whereas that is tremendous from the consensus and safety perspective, coverage guidelines would forestall such a transaction from being relayed throughout the community because it has a couple of ingredient left on stack.
3.Am I right?
It is vitally necessary for me to incorporate extra information when spending funds, however I’m not certain how to do that. Any concepts? Maybe to make use of another transaction sort to attain this?
Any assistance is welcome — even solutions to solely one of many above questions.