From 14630b1c449d9aed909fe2f9e730bad92713d579 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 15 Sep 2020 14:26:19 +0100 Subject: [PATCH] ZIP 300: reformat preamble and headings. Signed-off-by: Daira Hopwood --- zip-0300.rst | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/zip-0300.rst b/zip-0300.rst index 0b818497..2b37bd2b 100644 --- a/zip-0300.rst +++ b/zip-0300.rst @@ -1,25 +1,28 @@ -**Title:** Cross-chain Atomic Transaction Standards +:: -**Author:** Jay Graber + ZIP: 300 + Title: Cross-chain Atomic Transactions + Owners: Daira Hopwood + Original-Authors: Jay Graber + Status: Proposed + Category: Informational + Created: 2017-03-08 + License: MIT + Pull-Request: -**Status:** Active - -**Category:** Informational - -**Created:** 2017-03-08 Abstract -=========== +======== This is an Informational ZIP describing a proposed specification for a standardized protocol for performing cross-chain atomic transactions (XCAT) between Zcash and Bitcoin, or other Bitcoin-derived cryptocurrencies. Motivation -=========== +========== A well-defined standard for performing cross-chain transactions would improve the liquidity of cryptocurrencies and be useful for third-party services, such as decentralized exchanges. Specification -=============== +============= The proposed protocol for XCAT is a set of hash time-locked contracts across both chains, created by two parties who wish to do a cross-chain exchange. @@ -66,7 +69,7 @@ The two scenarios for spending funds from this second P2SH address are as follow 2. Fail case: Bob has not followed through on his part of the trade within the timeout period, so Alice sends her funds back to herself, canceling the transaction. Timeout Periods ------------------- +--------------- Having timeout periods on both transactions allows the XCAT protocol to work by enabling refunds in case a counterparty misbehaves. The example above uses a timeout period of 24 hours for the first transaction and 48 hours for the second, but these are simply suggestions. Actual timeout periods should be considered to be variables that depend on the following factors for any given implementation of XCAT: @@ -80,6 +83,6 @@ Note that using long time-locks in the P2SH scripts does not necessarily mean th Rationale -=========== +========= Users are free to come up with their own protocols for cross-chain atomic transactions, but having a well-defined protocol would aid adoption and support third-party services wishing to provide such functionality.