{"id":13820568,"url":"https://github.com/zeriontech/wallet-core-android","last_synced_at":"2025-05-07T04:43:28.211Z","repository":{"id":216969531,"uuid":"484262866","full_name":"zeriontech/wallet-core-android","owner":"zeriontech","description":"This repository contains Wallet Core used by Zerion Android.","archived":false,"fork":false,"pushed_at":"2023-09-22T12:22:24.000Z","size":99,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T04:43:22.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-22T01:57:44.000Z","updated_at":"2025-01-10T12:41:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c798fa4-ec93-4bd2-b311-677eb38b50a3","html_url":"https://github.com/zeriontech/wallet-core-android","commit_stats":null,"previous_names":["zeriontech/wallet-core-android"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeriontech%2Fwallet-core-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeriontech","download_url":"https://codeload.github.com/zeriontech/wallet-core-android/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.444Z","updated_at":"2025-05-07T04:43:28.183Z","avatar_url":"https://github.com/zeriontech.png","language":"Kotlin","funding_links":[],"categories":["Android"],"sub_categories":["Flutter SDK / Libraries"],"readme":"# Zerion Wallet Core\r\n\r\nThis repository contains Wallet Core used by Zerion Android app.\r\n\r\n## Examples\r\n\u003e Check androidTests to see all examples.\r\n\r\nDefine wallet data source, repository and cipherManager:\r\n```kotlin\r\nval cipherManager = CipherManager(context)\r\nval dataSource = WalletDataSourceImpl(cipherManager, \"com.mywallet\")\r\nval repository = WalletRepositoryImpl(dataSource)\r\n```\r\n\r\nImport or create wallet:\r\n```kotlin\r\nval walletContainer = repository.importWalletPersist(mnemonic, password, \"My wallet\")\r\n// or\r\nval walletContainer = repository.importWalletPersist(privateKey, password, \"My wallet\")\r\n// \r\nval walletContainer = repository.createWallet(password, \"My wallet\")\r\n```\r\n\r\nDerive accounts with index or derivation path:\r\n```kotlin\r\nval account0 = walletContainer.deriveAccount(0, password)\r\nval account1 = walletContainer.deriveAccount(\"m/44'/60'/0'/0/0\", password)\r\n```\r\n\r\nAccess private key via index or derivation path:\r\n```kotlin\r\nval privateKey0 = walletContainer.decryptPrivateKey(0, password).toHex()\r\nval privateKey1 = walletContainer.decryptPrivateKey(\"m/44'/60'/0'/0/0\", password).toHex()\r\n```\r\n\r\nAccess seed phrase:\r\n```kotlin\r\nval mnemonic = walletContainer.decryptMnemonic(password)\r\n```\r\n\r\nSign transaction:\r\n```kotlin\r\nval transaction = TransactionInput(\r\n            chainID =  ...,\r\n            gasPrice =  ...,\r\n            nonce =  ...,\r\n            gas =  ...,\r\n            toAddress =  ...,\r\n            data =  ...,\r\n            amount = ...,\r\n        )\r\n\r\nval signed = Signer.sign(Transaction(transaction), privateKey).toHex()\r\n```\r\n\r\n## Dependencies\r\n\r\n[TrustWalletCore](https://github.com/trustwallet/wallet-core) - low level wallet cryptography functionality, written in C++ with Java wrappers.\r\n\r\n\r\n## License\r\nZerion Wallet Core is available under the Apache 2.0 license. See the [LICENSE](LICENSE) file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeriontech%2Fwallet-core-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeriontech%2Fwallet-core-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeriontech%2Fwallet-core-android/lists"}