{"id":24107677,"url":"https://github.com/kitzen-io/bip39-react-native","last_synced_at":"2025-05-12T18:25:05.787Z","repository":{"id":184632067,"uuid":"672036686","full_name":"kitzen-io/bip39-react-native","owner":"kitzen-io","description":"bip39 is an enhancement proposal for the Bitcoin network, enabling the generation of a private key through a set of 12-24 mnemonic words","archived":false,"fork":false,"pushed_at":"2023-10-28T04:23:35.000Z","size":65,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T01:40:03.548Z","etag":null,"topics":["bip39","bitcoin","blockchain","buffer","javascript","npm","react-native","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kitzen-io.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":"2023-07-28T18:47:54.000Z","updated_at":"2023-08-04T19:17:18.000Z","dependencies_parsed_at":"2023-07-29T12:29:54.306Z","dependency_job_id":null,"html_url":"https://github.com/kitzen-io/bip39-react-native","commit_stats":null,"previous_names":["kitzen-io/bip39-react-native"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitzen-io%2Fbip39-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitzen-io%2Fbip39-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitzen-io%2Fbip39-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitzen-io%2Fbip39-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitzen-io","download_url":"https://codeload.github.com/kitzen-io/bip39-react-native/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253796437,"owners_count":21965713,"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","bitcoin","blockchain","buffer","javascript","npm","react-native","typescript"],"created_at":"2025-01-10T22:52:28.585Z","updated_at":"2025-05-12T18:25:05.763Z","avatar_url":"https://github.com/kitzen-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://img.shields.io/npm/v/@kitzen/react-native-bip39.svg)](https://www.npmjs.com/package/@kitzen/react-native-bip39) \n[![from kitzen with Love](https://img.shields.io/badge/from%20kitzen%20with-%F0%9F%A4%8D-red)](https://kitzen.io/) \n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/kitzen-io/bip39-react-native/blob/master/LICENSE)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/kitzen-io/bip39-react-native/issues/new)\n![test](https://github.com/kitzen-io/bip39-react-native/workflows/build-publish/badge.svg) \n[![Known Vulnerabilities](https://snyk.io/test/github/kitzen-io/react-native-bip39/badge.svg)](https://snyk.io/test/github/kitzen-io/react-native-bip39)\n\n# Bip39 with android support\n[Bip39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) is an enhancement proposal for the Bitcoin network, enabling the generation of a private key through a set of 12-24 mnemonic words\n\n### Why we need this instead of npm's bip39?\nOriginal [bip39](https://github.com/bitcoinjs/bip39) js library requires runtime implementation of crypto, e.g. [v8](https://v8.dev/) provides [globalThis.crypto](https://developer.mozilla.org/en-US/docs/Web/API/crypto_property), but [Hermes](https://reactnative.dev/docs/hermes) doesn't.\nSo this library comes with polyfills for\n - [buffer](https://developer.mozilla.org/en-US/docs/Glossary/Buffer)\n - [react-native-crypto](https://www.npmjs.com/package/react-native-crypto)\n - [react-native-random-bytes](https://www.npmjs.com/package/react-native-randombytes)\n\nAs native implementation for both from Android and IOS.\nIt was forked from [react-native-bip39](https://github.com/valora-inc/react-native-bip39), but original version have issues with\n - Dependencies, which are resolved here. E.g. require changed from original code.\n - Installation tips\n - Typescript support\n\n# Installation\n1. Copy paste this block to your package.json:\n```json\n{  \n  \"dependencies\": {\n    \"react-native-crypto\": \"*\",\n    \"react-native-randombytes\": \"*\"\n  },\n  \"resolutions\": {\n    \"@kitzen/react-native-bip39/react-native-crypto/pbkdf2\": \"3.1.2\",\n    \"@kitzen/react-native-bip39/react-native-crypto/public-encrypt/parse-asn1/pbkdf2\": \"3.1.2\",\n    \"@kitzen/react-native-bip39/react-native-random-bytes/buffer\": \"^6.0.3\"\n  }\n}\n```\nThis is required! \n - Resolutions are not applied from nested modules. So manual setup is required\n - Duplicating dependencies is required so react could pull up list of packages it needs to check as native modules, otherwise you'll get [undefined RNRandomBytes.seed](https://stackoverflow.com/questions/67019573/typeerror-null-is-not-an-object-evaluating-rnrandombytes-seed-react-native/76767229#76767229)\n\n2. Install the library\n```bash\nyarn add @kitzen/react-native-bip39\nyarn add buffer ^6.0.3\n# You must run this manually before running MetroJs server\n# Otherwise you'll get: \"Cannot read properties of undefined (reading 'seed')\"\ncd ./android\n./gradlew build\ncd .. \u0026\u0026 npm start\n# metro will not automatically apply native changes. Thus please press 'A' to deploy android\n```\n3. Open your `yarn.lock` file and make sure that dependencies are resolved according to [package.json](https://www.npmjs.com/package/@kitzen/react-native-bip39?activeTab=code) resolutions section.\n\n# Contributing\nWe deeply appreciate the valuable contributions made by our community. \nTo provide feedback or report bugs, [kindly open a GitHub issue](https://github.com/kitzen-io/bip39-react-native/issues/new).\nFor code contributions, explore our \"Contributing\" guidelines and become part of our open-source community. \n\nThank you to all the dedicated individuals who contribute; your passion drives our success. Together, we shape the future of web3 industry.\n\n\u003ca href=\"https://github.com/kitzen-io/bip39-react-native/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=kitzen-io/bip39-react-native\u0026max=400\u0026columns=20\" /\u003e\n  \u003cimg src=\"https://us-central1-tooljet-hub.cloudfunctions.net/github\" width=\"0\" height=\"0\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitzen-io%2Fbip39-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitzen-io%2Fbip39-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitzen-io%2Fbip39-react-native/lists"}