{"id":13820590,"url":"https://github.com/zeriontech/wallet-core-ios","last_synced_at":"2025-07-09T13:38:33.985Z","repository":{"id":216969625,"uuid":"484015975","full_name":"zeriontech/wallet-core-ios","owner":"zeriontech","description":"This repository contains Wallet Core used by Zerion iOS and macOS apps.","archived":false,"fork":false,"pushed_at":"2023-09-22T11:34:48.000Z","size":31,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T04:43:25.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeriontech.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,"roadmap":null,"authors":null}},"created_at":"2022-04-21T11:01:08.000Z","updated_at":"2025-01-10T12:41:20.000Z","dependencies_parsed_at":"2024-01-14T00:07:08.823Z","dependency_job_id":null,"html_url":"https://github.com/zeriontech/wallet-core-ios","commit_stats":null,"previous_names":["zeriontech/wallet-core-ios"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeriontech","download_url":"https://codeload.github.com/zeriontech/wallet-core-ios/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816517,"owners_count":21808702,"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","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":[],"created_at":"2024-08-04T08:01:05.733Z","updated_at":"2025-05-07T04:43:30.179Z","avatar_url":"https://github.com/zeriontech.png","language":"Swift","funding_links":[],"categories":["iOS"],"sub_categories":["Flutter SDK / Libraries"],"readme":"# Zerion Wallet Core\n\nThis repository contains Wallet Core used by Zerion app.\n\n## Examples\n\u003e Check tests to see all examples.\n\nDefine wallet storage and manager:\n```swift\nlet storage = ZerionWalletStorage(service: \"com.mywallet\")\nlet manager = ZerionWalletManager(storage: storage)\n```\n\nImport or create wallet:\n```swift\nlet walletContainer = try manager.importWalletPersist(mnemonic: mnemonic, password: password, name: \"My wallet\")\n// or\nlet walletContainer = try manager.importWalletPersist(privateKey: privateKey, password: password, name: \"My wallet\")\n// or\nlet walletContainer = try manager.createWalletPersist(password: password, name: \"My wallet\")\n```\n\nDerive accounts with index or derivation path:\n```swift\nlet account0 = walletContainer.deriveAccount(accountIndex: 0, password: password)\nlet account1 = walletContainer.deriveAccount(derivationPath: \"m/44'/60'/0'/0/1\", password: password)\n```\n\nAccess private key via index or derivation path:\n```swift\nlet privateKey0 = try walletContainer.decryptPrivateKey(accountIndex: 0, password: password).hexString\nlet privateKey1 = try walletContainer.decryptPrivateKey(derivationPath: \"m/44'/60'/0'/0/1\", password: password).hexString\n```\n\nAccess seed phrase:\n```swift\nlet mnemonic = walletContainer.decryptMnemonic(password: password)\n```\n\nSign transaction:\n```swift\nlet transaction = TransactionInput(\n  chainID: ...,\n  nonce: ...,\n  gasPrice: ...,\n  gas: ...,\n  toAddress: ...,\n  data: ...,\n  amount: ...,\n)\n\nlet signed = try Signer.sign(input: .transaction(transaction), privateKey: privateKey).hexString\n```\n\n## Installation via Swift Package Manager\n#### Xcode\n\nSelect `File \u003e Add Packages... \u003e Add Package Dependency...` and insert git url.\n\n#### CLI\n\nFirst, create `Package.swift` that its package declaration includes:\n\n```swift\n// swift-tools-version:5.0\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyLibrary\",\n    products: [\n        .library(name: \"MyLibrary\", targets: [\"MyLibrary\"]),\n    ],\n    dependencies: [\n        .package(url: \"https://github.com/zeriontech/zerion-wallet-core-ios.git\", branch: \"master\"),\n    ],\n    targets: [\n        .target(name: \"MyLibrary\", dependencies: [\"ZerionWalletCore\"]),\n    ]\n)\n```\n\nThen, type\n\n```shell\n$ swift build\n```\n\n## Dependencies\n\n[TrustWalletCore](https://github.com/trustwallet/wallet-core) - low level wallet cryptography functionality, written in C++ with Swift wrappers.\n\n[KeychainAccess](https://github.com/kishikawakatsumi/KeychainAccess) - wrapper for iOS keychain.\n\n[SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON) - easy JSON handling with Swift.\n\n[CryptoSwift](https://github.com/krzyzanowskim/CryptoSwift) - crypto related functions and helpers for Swift implemented in Swift.\n\n## License\n\nZerion Wallet Core is available under the Apache 2.0 license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeriontech%2Fwallet-core-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeriontech%2Fwallet-core-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeriontech%2Fwallet-core-ios/lists"}