{"id":18245016,"url":"https://github.com/edgeapp/react-native-mymonero-core","last_synced_at":"2025-04-04T13:32:02.310Z","repository":{"id":43405861,"uuid":"314343801","full_name":"EdgeApp/react-native-mymonero-core","owner":"EdgeApp","description":"This library packages the mymonero-core-cpp library for use on React Native.","archived":false,"fork":false,"pushed_at":"2023-07-04T21:00:09.000Z","size":3441,"stargazers_count":4,"open_issues_count":2,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-09-21T13:10:27.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/EdgeApp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2020-11-19T19:01:36.000Z","updated_at":"2023-06-09T20:55:08.000Z","dependencies_parsed_at":"2024-06-19T16:39:30.011Z","dependency_job_id":null,"html_url":"https://github.com/EdgeApp/react-native-mymonero-core","commit_stats":{"total_commits":43,"total_committers":3,"mean_commits":"14.333333333333334","dds":0.09302325581395354,"last_synced_commit":"8e0e6794e8a555ce6236b17f0f2ee1f28a797d0c"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeApp%2Freact-native-mymonero-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeApp%2Freact-native-mymonero-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeApp%2Freact-native-mymonero-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeApp%2Freact-native-mymonero-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EdgeApp","download_url":"https://codeload.github.com/EdgeApp/react-native-mymonero-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223144182,"owners_count":17094798,"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-11-05T09:18:36.187Z","updated_at":"2024-11-05T09:18:37.005Z","avatar_url":"https://github.com/EdgeApp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-mymonero-core\n\nThis library packages Monero C++ crypto methods for use on React Native.\n\nIt has a single default export that mostly matches the `WABridge` interface found in [@mymonero/mymonero-monero-client](https://github.com/mymonero/mymonero-utils/tree/master/packages/mymonero-monero-client). The big difference is that react-native-mymonero-core only has async methods, whereas many of the upstream `WABridge` methods are synchronous.\n\n## Usage\n\nFirst, add this library to your React Native app using NPM or Yarn, and run `pod install` as necessary to integrate it with your app's native code.\n\nHere is a simple usage example. Note the `await` on the method call, but not on the require:\n\n```js\nconst bridge = require('react-native-mymonero-core')\n\nconst addressInfo = await bridge.decodeAddress('...', 'MAINNET')\n```\n\nYou can also use ES6 imports if you prefer:\n\n```js\nimport bridge from 'react-native-mymonero-core'\n```\n\nWe have types too, if you need those:\n\n```ts\nimport type { CppBridge } from 'react-native-mymonero-core'\n```\n\nThe available methods are:\n\n- addressAndKeysFromSeed\n- compareMnemonics\n- createTransaction\n- decodeAddress\n- estimateTxFee\n- generateKeyImage\n- generatePaymentId\n- generateWallet\n- isIntegratedAddress\n- isSubaddress\n- isValidKeys\n- mnemonicFromSeed\n- newIntegratedAddress\n- seedAndKeysFromMnemonic\n\nSee the documentation at [@mymonero/mymonero-monero-client](https://github.com/mymonero/mymonero-utils/tree/master/packages/mymonero-monero-client) for more information.\n\n## Developing\n\nThis library relies on a large amount of native C++ code from other repos. To integrate this code, you must run the following script before publishing this library to NPM:\n\n```sh\nnpm run update-sources\n```\n\nThis script does the following tasks:\n\n- Download third-party source code.\n- Set up the Android build system:\n  - Determine which C++ headers are actually necessary.\n  - Copy the necessary sources into `android/src/main/cpp`.\n  - Assemble `CMakeLists.txt`.\n- Compile an iOS universal static library and put it into an XCFramework.\n- Generate Flow types from the TypeScript definitions.\n\nThe `update-sources` script is also the place to make edits when upgrading any of the third-party dependencies. The react-native-mymonero-core repo doesn't include these third-party C++ sources, since they are enormous.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeapp%2Freact-native-mymonero-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeapp%2Freact-native-mymonero-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeapp%2Freact-native-mymonero-core/lists"}