{"id":29148804,"url":"https://github.com/anquii/bip32","last_synced_at":"2025-07-23T17:07:37.282Z","repository":{"id":142222862,"uuid":"456597848","full_name":"anquii/BIP32","owner":"anquii","description":"An implementation of BIP-0032 in Swift","archived":false,"fork":false,"pushed_at":"2023-12-02T18:16:47.000Z","size":131,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T22:07:45.046Z","etag":null,"topics":["bip32","bitcoin","ios","macos","swift","swift-package","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anquii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-02-07T17:00:20.000Z","updated_at":"2023-12-13T03:28:36.000Z","dependencies_parsed_at":"2023-07-16T21:00:26.822Z","dependency_job_id":null,"html_url":"https://github.com/anquii/BIP32","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/anquii/BIP32","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anquii%2FBIP32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anquii%2FBIP32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anquii%2FBIP32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anquii%2FBIP32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anquii","download_url":"https://codeload.github.com/anquii/BIP32/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anquii%2FBIP32/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266717708,"owners_count":23973384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bip32","bitcoin","ios","macos","swift","swift-package","swift-package-manager"],"created_at":"2025-06-30T22:07:36.246Z","updated_at":"2025-07-23T17:07:37.262Z","avatar_url":"https://github.com/anquii.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BIP32\n\n[![Platform](https://img.shields.io/badge/Platforms-macOS%20%7C%20iOS-blue)](#platforms)\n[![Swift Package Manager compatible](https://img.shields.io/badge/SPM-compatible-orange)](#swift-package-manager)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/anquii/BIP32/blob/main/LICENSE)\n\nAn implementation of [BIP-0032](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) in Swift.\n\n## Platforms\n- macOS 10.15+\n- iOS 13+\n\n## Installation\n\n### Swift Package Manager\n\nAdd the following line to your `Package.swift` file:\n```swift\n.package(url: \"https://github.com/anquii/BIP32.git\", from: \"1.0.0\")\n```\n...or integrate with Xcode via `File -\u003e Swift Packages -\u003e Add Package Dependency...` using the URL of the repository.\n\n## Usage\n\n```swift\nimport BIP32\n\nlet keySerializer: KeySerializing = KeySerializer()\nlet serializedKeyCoder: SerializedKeyCoding = SerializedKeyCoder()\n\nlet privateMasterKeyDerivator: PrivateMasterKeyDerivating = PrivateMasterKeyDerivator()\nlet privateMasterKey = try privateMasterKeyDerivator.privateKey(seed: seed)\nlet privateMasterKeyVersion = KeyVersion(network: network, keyAccessControl: .`private`).wrappedValue\nlet privateMasterKeyAttributes = MasterKeyAttributes(accessControl: .`private`, version: privateMasterKeyVersion)\nlet serializedPrivateMasterKey = try keySerializer.serializedKey(extendedKey: privateMasterKey, attributes: privateMasterKeyAttributes)\nlet encodedPrivateMasterKey = serializedKeyCoder.encode(serializedKey: serializedPrivateMasterKey)\n// e.g. xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi\n\nlet publicMasterKeyDerivator: PublicMasterKeyDerivating = PublicMasterKeyDerivator()\nlet publicMasterKey = try publicMasterKeyDerivator.publicKey(privateKey: privateMasterKey)\nlet publicMasterKeyVersion = KeyVersion(network: network, keyAccessControl: .`public`).wrappedValue\nlet publicMasterKeyAttributes = MasterKeyAttributes(accessControl: .`public`, version: publicMasterKeyVersion)\nlet serializedPublicMasterKey = try keySerializer.serializedKey(extendedKey: publicMasterKey, attributes: publicMasterKeyAttributes)\nlet encodedPublicMasterKey = serializedKeyCoder.encode(serializedKey: serializedPublicMasterKey)\n// e.g. xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8\n```\n\nFind out more by exploring the public API (e.g. for child key derivation), and by looking through the [tests](Tests/BIP32Tests).\n\n## License\n\n`BIP32` is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file for more information.\n\n## Acknowledgments\n\nIn developing `BIP32`, [KevinVitale](https://github.com/KevinVitale)'s [WalletKit](https://github.com/KevinVitale/WalletKit) has been used as a reference implementation. In addition, `BIP32` depends on [krzyzanowskim](https://github.com/krzyzanowskim)'s [CryptoSwift](https://github.com/krzyzanowskim/CryptoSwift), [GigaBitcoin](https://github.com/GigaBitcoin)'s [secp256k1.swift](https://github.com/GigaBitcoin/secp256k1.swift) and [attaswift](https://github.com/attaswift)'s [BigInt](https://github.com/attaswift/BigInt).\n\n## Donations\n\nIf you've found this software useful, please consider making a small contribution to one of these crypto addresses:\n\n```\nXNAV: xNTYqoQDzsiB5Cff9Wpt65AgZxYkt1GFy7KwuDafqRU2bcAZqoZUW4Q9TZ9QRHSy8cPsM5ALkJasizJCmqSNP9CosxrF2RbKHuDz5uJVUBcKJfvnb3RZaWygr8Bhuqbpc3DsgfB3ayc\nXMR: 49jzT7Amu9BCvc5q3PGiUzWXEBQTLQw68a2KvBFTMs7SHjeWgrSKgxs69ycFWQupyw9fpR6tdT8Hp5h3KksrBG9m4c8aXiG\nBTC: bc1q7hehfmnq67x5k7vz0cnc75qyflkqtxe2avjkyw\nETH (ERC-20) \u0026 BNB (BEP-20): 0xe08e383B4042749dE5Df57d48c57A690DC322b8d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanquii%2Fbip32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanquii%2Fbip32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanquii%2Fbip32/lists"}