paint-brush

This story draft by @escholar has not been reviewed by an editor, YET.

How Blockchain Contracts Ensure Fairness, Flexibility, and Compensation for Option Holders

featured image - How Blockchain Contracts Ensure Fairness, Flexibility, and Compensation for Option Holders
EScholar: Electronic Academic Papers for Scholars HackerNoon profile picture
0-item

Table of Links

  1. Abstract and Introduction

  2. Preliminaries

  3. Overview

  4. Protocol

    4.1 Efficient Option Transfer Protocol

    4.2 Holder Collateral-Free Cross-Chain Options

  5. Security Analysis

    5.1 Option Transfer Properties

    5.2 Option Properties

  6. Implementation

  7. Related Work

  8. Conclusion and Discussion, and References


A. Codes

B. Proofs

B.2 Option

Theorem 6. Protocol 4.2 satisfies option correctness: If both the Alice and Bob are conforming, then if Alice does not exercise the right, Alice doesn’t lose the 𝐴𝑠𝑠𝑒𝑑𝐴 and Bob doesn’t lose the 𝐴𝑠𝑠𝑒𝑑𝐺 and 𝐴𝑠𝑠𝑒𝑑𝐡; or if Alice exercise the right, then Alice will receive 𝐴𝑠𝑠𝑒𝑑𝐡 and Bob will receive 𝐴𝑠𝑠𝑒𝑑𝐴 and 𝐴𝑠𝑠𝑒𝑑𝐺 .


Proof. According to Protocol 4.2, it is evident that if Alice escrows her collateral in the πΆπ‘œπ‘›π‘‘π‘Ÿπ‘Žπ‘π‘‘π΄ contract and calls 𝑒π‘₯π‘’π‘Ÿπ‘π‘–π‘ π‘’ (), then a conforming Bob will reveal the pre-image 𝐡 in πΆπ‘œπ‘›π‘‘π‘Ÿπ‘Žπ‘π‘‘π΄ to reclaim the guarantee 𝐴𝑠𝑠𝑒𝑑𝐺 and Alice’s collateral 𝐴𝑠𝑠𝑒𝑑𝐴. Subsequently, Alice can use 𝐡 to obtain 𝐴𝑠𝑠𝑒𝑑𝐡. If Alice does not escrow the collateral, Bob will not reveal 𝐡. After the option expires at 𝑇𝐸 +2Ξ”, Bob can callπ‘π‘™π‘Žπ‘–π‘š() and π‘Ÿπ‘’ 𝑓 𝑒𝑛𝑑 () on the respective chains to reclaim 𝐴𝑠𝑠𝑒𝑑𝐺 and 𝐴𝑠𝑠𝑒𝑑𝐡.


Theorem 7. Protocol 4.2 satisfies exercisablity: During the transfer from Bob to Dave, the option remains active, allowing Alice to exercise the option without any delays.


Proof. According to Protocol 4.2.1, during the transfer from Bob to Dave, Alice can make a deposit and exercise her option at any time. If the transfer is in the Setup Phase, Bob will need to reveal 𝐡 to fulfill his obligation and revoke the transfer. It is important to note that Dave can use 𝐡 to reclaim 𝑇 π‘Ÿπ‘Žπ‘›π‘ π‘Š . If the transfer is in the Attempt Phase and Bob acts maliciously by using 𝐡 to take 𝐴𝑠𝑠𝑒𝑑𝐺 , Alice can use 𝐡 to obtain 𝐴𝑠𝑠𝑒𝑑𝐡. Dave will need to use 𝐡 on πΆπ‘œπ‘›π‘‘π‘Ÿπ‘Žπ‘π‘‘π΅ to withdraw the transfer. Otherwise, when Dave uses πœŽπ‘š to change the writer and the hash lock, he will reveal a new preimage secret 𝐷, which Alice can then use to obtain 𝐴𝑠𝑠𝑒𝑑𝐡.


Theorem 8. Protocol 4.2 satisfies failure compensation: Before expiration, Alice can exercise the option successfully, or if the exercise fails, she is compensated with the guarantee deposited by Bob.


Proof. By Theorem 6, if Alice successfully exercises her option, she will receive Bob’s collateral. Otherwise, after Alice makes a deposit and calls 𝑒π‘₯π‘’π‘Ÿπ‘π‘–π‘ π‘’ (), πΆπ‘œπ‘›π‘‘π‘Ÿπ‘Žπ‘π‘‘π΄ can invoke π‘–π‘ π·π‘’π‘π‘œπ‘ π‘–π‘‘π‘’π‘‘ () to determine if the exercise has occurred. If Bob does not fulfill his obligation within a period of Ξ”, Alice can call π‘π‘™π‘Žπ‘–π‘š() to obtain 𝐴𝑠𝑠𝑒𝑑𝐺 as compensation, and Bob will lose his guarantee.


Authors:

(1) Zifan Peng, The Hong Kong University of Science and Technology (Guangzhou) Guangzhou, Guangdong, China ([email protected]);

(2) Yingjie Xue, The Hong Kong University of Science and Technology (Guangzhou) Guangzhou, Guangdong, China ([email protected]);

(3) Jingyu Liu, The Hong Kong University of Science and Technology (Guangzhou) Guangzhou, Guangdong, China ([email protected]).


This paper is available on arxiv under CC BY 4.0 license.