{"repo":"horizontalsystems/BitcoinKit.Swift","free":true,"listed":false,"github":"https://github.com/horizontalsystems/BitcoinKit.Swift","clone":"git clone https://github.com/horizontalsystems/BitcoinKit.Swift.git","description":"Extension to BitcoinCore.Swift that makes it usable with Bitcoin network.","language":"Swift","stars":12,"topics":["bitcoin","bitcoin-core","blockchain"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"BitcoinKit.Swift BitcoinKit.Swift is a package that extends BitcoinCore.Swift and makes it usable with Bitcoin Mainnet and Testnet networks. Usage Initialization First, you nead an instance of BitcoinKit.Kit class. You can initialize it with Mnemonic seed or BIP32 extended key (private or public). To generate seed from mnemonic seed phrase you can use HdWalletKit.Swift to convert a word list to a seed. Then you can pass a seed to initialize an instance of BitcoinKit.Kit purpose BitcoinKit.Swift supports BIP44 , BIP49 and BIP84 wallets. They have different derivation paths, so you need to specify this on kit initialization. syncMode BitcoinKit.Swift pulls all historical transactions of given account from bitcoin peers according to SPV protocol. This process may take several hours as it needs to download every block header with some transactions to find transactions concerning the accounts addresses. In order to speed up the initial blockchain scan, BitcoinKit.Swift has some optimization options: - It doesn't download blocks added before the BIP44 was implemented by wallets, because there were no transactions concerning addresses generated by BIP44 wallets. - If you set .api or .newWallet to syncMode parameter, it first requests from an API (currently Blockchain.com) the hashes of the blocks where there are transactions we need. Then, it downloads those blocks from the bitcoin peers. This reduces the initial synchronization time to several minutes. This also carries some risks ","default_branch":null,"files":null,"tree":[],"storefront":"/r/horizontalsystems","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/horizontalsystems/BitcoinKit.Swift/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."}