I'm currently working on implementing a modified version of Hash Time Locked Contracts (HTLC) in Bitcoin and would greatly appreciate any guidance or best practices from the community.
Objective: I aim to modify the standard HTLC to simplify the creation process. In my modified HTLC:
- The creator of the HTLC does not need to specify a hash lock initially.
- The creator specifies a party (which can be nullable) who will later add the hash lock to the pre-HTLC.
- Only the creator of the pre-HTLC and the specified party can add the hash lock.
Questions:
- Feasibility: Can this modification be implemented within the current Bitcoin scripting capabilities? Are there any inherent limitations I should be aware of?
- Security Considerations: What potential security risks should I consider with this modification? How can I mitigate these risks?