{"repo":"horizontalsystems/atomic-swap-kit-ios","free":true,"listed":false,"github":"https://github.com/horizontalsystems/atomic-swap-kit-ios","clone":"git clone https://github.com/horizontalsystems/atomic-swap-kit-ios.git","description":"Atomic Swap iOS library for Bitcoin (BTC) and Bitcoin Cash (BCH) swaps in decentralized manner. Implemented on Swift.","language":"Swift","stars":17,"topics":["atomic-swap","atomicswap","atomicswaps","dex","bitcoin","bitcoin-cash","decentralized-exchange"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Overview This is a swift library that allows Atomic Swap, decentralized crypto currency exchange, between 2 parties. The implementation is based on Hash Time Locked Contracts. Usage Initialization The primary class to use is SwapKit . The supported coins should be registered to SwapKit . The load method resumes atomic swaps previously in progress. Exchanging crypto-curencies There are 2 sides that take part in the process: Initiator and Responder. The process consists of the following steps: Request for a swap Initiator creates swap request: Response to a swap Responder creates response for this request: Creating response also starts the swap process in the Responder side. Initiate swap Initiator takes response and starts the swap Initiator and Responder Communication The Swap Request and Swap Response are the simple data objects. They can be easily serialized into/parsed from strings and interchanged via standard apps, like messenger or email. Prerequisites Xcode 10.0+ Swift 5+ iOS 11+ Installation CocoaPods CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command: CocoaPods 1.5.0+ is required to build BitcoinKit. To integrate BitcoinKit into your Xcode project using CocoaPods, specify it in your Podfile : Then, run the following command: Example Project All features of the library are used in example project. It can be referred as a starting point for usage of the library. Example Project Dependencies HSHDWalletKit - HD Wallet rela","default_branch":null,"files":null,"tree":[],"storefront":"/r/horizontalsystems","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/horizontalsystems/atomic-swap-kit-ios/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}