{"id":26482087,"url":"https://github.com/potato-coin/react-native-potato-crypto","last_synced_at":"2025-03-20T03:55:47.987Z","repository":{"id":34939792,"uuid":"178837513","full_name":"potato-coin/react-native-potato-crypto","owner":"potato-coin","description":"react native bip39 c++ module","archived":false,"fork":false,"pushed_at":"2023-03-04T03:57:25.000Z","size":2237,"stargazers_count":4,"open_issues_count":8,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T13:13:58.077Z","etag":null,"topics":["bip39","c-plus-plus","react-native"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/potato-coin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-01T10:12:38.000Z","updated_at":"2023-02-03T15:05:23.000Z","dependencies_parsed_at":"2023-02-15T05:16:37.578Z","dependency_job_id":null,"html_url":"https://github.com/potato-coin/react-native-potato-crypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato-coin%2Freact-native-potato-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato-coin%2Freact-native-potato-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato-coin%2Freact-native-potato-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato-coin%2Freact-native-potato-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/potato-coin","download_url":"https://codeload.github.com/potato-coin/react-native-potato-crypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244547599,"owners_count":20470102,"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":["bip39","c-plus-plus","react-native"],"created_at":"2025-03-20T03:55:47.454Z","updated_at":"2025-03-20T03:55:47.981Z","avatar_url":"https://github.com/potato-coin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-potato-crypto\n\n## Getting started\n\n`$ npm install react-native-potato-crypto --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-potato-crypto`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-potato-crypto` and add `PotatoCrypto.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libPotatoCrypto.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainApplication.java`\n  - Add `import com.potato.crypto.PotatoCryptoPackage;` to the imports at the top of the file\n  - Add `new PotatoCryptoPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-potato-crypto'\n  \tproject(':react-native-potato-crypto').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-potato-crypto/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-potato-crypto')\n  \t```\n\n\n## Usage\n```javascript\nimport PotatoCrypto from 'react-native-potato-crypto';\n\nconst langs = await PotatoCrypto.getLanguages();\nconst mnemonic = await PotatoCrypto.generate('zhs', entropy.BIP39_ENTROPY_LEN_128);\nconst isValidate = await PotatoCrypto.validateMnemonic(mnemonic.mnemonic, 'zhs');\nconst seedHex = await PotatoCrypto.mnemonicToBip39SeedHex(mnemonic.mnemonic);\n\n```\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotato-coin%2Freact-native-potato-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotato-coin%2Freact-native-potato-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotato-coin%2Freact-native-potato-crypto/lists"}