[Bitcoin-development] BIP - Hash Locked Transaction
tier.nolan at gmail.com
Fri Apr 25 18:49:37 UTC 2014
As part of the atomic cross chain system, outputs need to be hash locked.
A user needs to provide x corresponding to hash(x) in order to spend an
Under the protocol, one of the participants is required to provide the
secret number in order to spend an output. Once they do that, the other
participant can use the secret number to spend an output on the other
chain. This provides a mechanism to link the 2 chains together (in
addition to lock times). Once the first output is spent, that commits the
This is half of the scripting operations required to implement the protocol.
The proposal is to make this an adder on to the other standard
transactions. It does a check that the hash matches, and then runs the
standard transaction as normal.
Adding the prefix to a P2SH transactions wouldn't work, since the template
A script of this form could be embedded into a P2SH output.
I think that is ok, since embedding the "password" in the hashed script
gets all the benefits.
If there is agreement, I can code up the reference implementation as a PR.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bitcoin-dev