public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] BIP - Hash Locked Transaction
@ 2014-04-25 18:49 Tier Nolan
  2014-04-25 19:18 ` Luke-Jr
  2014-04-25 20:06 ` Alex Mizrahi
  0 siblings, 2 replies; 10+ messages in thread
From: Tier Nolan @ 2014-04-25 18:49 UTC (permalink / raw)
  To: Bitcoin Development

[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]

As part of the atomic cross chain system, outputs need to be hash locked.

https://github.com/TierNolan/bips/blob/bip4x/bip-0045.mediawiki

https://bitcointalk.org/index.php?topic=193281.msg2224949#msg2224949

A user needs to provide x corresponding to hash(x) in order to spend an
output.

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
transfer.

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
wouldn't match.

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.

[-- Attachment #2: Type: text/html, Size: 1687 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-26 11:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-25 18:49 [Bitcoin-development] BIP - Hash Locked Transaction Tier Nolan
2014-04-25 19:18 ` Luke-Jr
2014-04-25 19:37   ` Tier Nolan
2014-04-25 20:06 ` Alex Mizrahi
2014-04-25 20:14   ` Peter Todd
2014-04-25 20:19     ` Gregory Maxwell
2014-04-25 21:14       ` Peter Todd
2014-04-25 21:52         ` Tier Nolan
2014-04-26 11:11           ` Jorge Timón
2014-04-26 11:31             ` Tier Nolan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox