Giter VIP home page Giter VIP logo

rrwallet's Introduction

ARCHIVED

RRWallet是一款On-Chain数字货币钱包, 支持多个币种, 可同时运行在iOS, Android上.

主要特点⚡️

  • 支持BTC, USDT, ETH, BCH, BSV, ETC等多个币种
  • 支持BTC和USDT多签
  • 智能合约批量发送交易
  • 助记词加密存储在本地
  • 使用React Native开发, 一套代码同时支持iOS, Android
  • 门限签名(即将支持)

本地运行🚀

确保已经安装了Node.js, iOS 和 Android开发环境

1.安装依赖

npm ci		#前端依赖
cd ios		#以下为iOS依赖, 如不需要可以跳过
pod install

2.启动服务

npm start

3.打开Xcode或者Android Studio 运行即可

编译Release😈

iOS

#确保Xcode中的证书有效
npm run build-ios

Android

#需要替换掉build.gradle中的Keystore以及对应的密码
npm run build-android

社区

欢迎到社区里与我们讨论任何技术问题

RenrenBit Developer Group(Telegram)

License

MIT License

Copyright (c) 2020 RenrenBit

rrwallet's People

Contributors

dependabot[bot] avatar kufufu9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rrwallet's Issues

npm ci 出错

npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t ssh://[email protected]/kufufu9/buffer.git
npm ERR!
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: 无法读取远程仓库。
npm ERR!
npm ERR! 请确认您有正确的访问权限并且仓库存在。
npm ERR!
npm ERR! exited with error code: 128

AttributeError: 'MSVSProject' object has no attribute 'items'

运行“npm ci”,在下面的问题卡主了。是有什么依赖的版本不一致吗?我电脑上安装的Python是3.8.2。具体运行问题如下:

npm ci
npm WARN prepare removing existing node_modules/ before installation

@sentry/[email protected] install E:\git\thirdparty\RRWallet\node_modules@sentry\cli
node scripts/install.js

[email protected] postinstall E:\git\thirdparty\RRWallet\node_modules\react-native-elements
opencollective-postinstall

Thank you for using react-native-elements!
If you rely on this package, please consider supporting our open collective:

https://opencollective.com/react-native-elements/donate

[email protected] postinstall E:\git\thirdparty\RRWallet\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

[email protected] install E:\git\thirdparty\RRWallet\node_modules\fsevents
node-gyp rebuild

E:\git\thirdparty\RRWallet\node_modules\fsevents>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Traceback (most recent call last):
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 50, in
sys.exit(gyp.script_main())
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 554, in script_main
return main(sys.argv[1:])
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 547, in main
return gyp_main(args)
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 532, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2033, in GenerateOutput
root_entries = _GatherSolutionFolders(
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1791, in _GatherSolutionFolders
return _DictsToFolders('', root, flat)
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1744, in _DictsToFolders
for folder, contents in bucket.items():
AttributeError: 'MSVSProject' object has no attribute 'items'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\git\thirdparty\RRWallet\node_modules\fsevents
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\10099\AppData\Roaming\npm-cache_logs\2020-03-22T18_03_25_265Z-debug.log

安装ios版本,遇到yoga包问题

Fetching podspec for yoga from ../node_modules/react-native/ReactCommon/yoga
[!] The name of the given podspec Yoga doesn't match the expected one yoga

我看网上的解决办法是
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
变成小写
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
但是 我看我下载的podfile了
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

不知道是什么问题了,如何解决?

react-native run-android报错

FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'installDebug' not found in project ':app'.

  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.

Ubuntu 安装到模拟机里面以后,一直显示白屏。请问需要修改什么文件吗?

安装到模拟机里面以后,一直显示白屏。请问需要修改什么文件吗?

android studio控制台里面显示:
$ adb shell am start -n "com.renrenbit.rrwallet.inhouse/com.renrenbit.rrwallet.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for process to come online...
Timed out waiting for process to appear on Pixel_3a_API_27 [emulator-5554].

我是用Android studio直接打开android目录,直接安装到模拟器里。

在模拟器里,可以看到安装的app,但是执行的时候就一直显示白屏。
是需要改其他的设置吗。
还是我的安装方式有问题?
多谢了!

有没有大佬可以详细写一下第三步(3.打开Xcode或者Android Studio 运行即可)是怎么做的?

安卓版本打开白屏,然后报如下错误

IOS版本没问题,安卓版本无论是在模拟器还是打包出来真机运行都是显示白屏,安卓版本打开后啥错都没有,需要npm run start,然后再打开端口才能看到错误信息
image

如何在Android Studio 运行?

卡在这一个步了: 3.打开Xcode或者Android Studio 运行即可
请教一下怎么在android studio运行呀?多谢了!

FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'installDebug' not found in project ':app'.

  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s

npm install Sentry错误

[!] CocoaPods could not find compatible versions for pod "Sentry":
In snapshot (Podfile.lock):
Sentry (= 4.1.3, ~> 4.1.3)

In Podfile:
SentryReactNative (from ../node_modules/react-native-sentry) was resolved to 0.42.0, which depends on
Sentry (~> 4.1.3)

None of your spec sources contain a spec satisfying the dependencies: Sentry (= 4.1.3, ~> 4.1.3), Sentry (~> 4.1.3).

You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.
bundle exec pod install failed

安装依赖失败 The authenticity of host 'gitlab.com (35.231.145.151)' can't be established.ser

localhost:RRWallet sp$ npm ci
The authenticity of host 'gitlab.com (35.231.145.151)' can't be established.ser
ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw.
Are you sure you want to continue connecting (yes/no)? ⸨ ░░░░░░░░░░░░░░░⸩ ⠼ ex⸨ ⸩ ⠹ extractTree: sill extract [email protected] extracted to /Us
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/mf-npm/buffer.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sp/.npm/_logs/2020-02-13T08_59_11_180Z-debug.log

在ios目录下执行pod install --repo-update报错如下

[!] Error installing FLAnimatedImage
[!] /usr/bin/git clone https://github.com/Flipboard/FLAnimatedImage.git /var/folders/fm/v2mmws_j6pgc8m1c4zqny2380000gn/T/d20200223-57127-1aci97f --template= --single-branch --depth 1 --branch 1.0.12

Cloning into '/var/folders/fm/v2mmws_j6pgc8m1c4zqny2380000gn/T/d20200223-57127-1aci97f'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed

How to restore via bip39 and hdkey packages?

I've backed up my RRWallet mnemonic, I want to test RRWallet's compatibility with other open source tools, such as the npm packages bip39 and hdkey.

import * as bip39 from 'bip39';
import hdkey from 'hdkey';

const BIP44_ETH_HD_PATH = "m/44'/60'/0'/0/0"; 

export function generateETHAddresseFromSeed(
  mnemonic: string,
): {
  address: string;
  privateKey: any;
} {
  const hdwallet = hdkey.fromMasterSeed(bip39.mnemonicToSeedSync(mnemonic));

  const wallet = hdwallet.derive(BIP44_ETH_HD_PATH);
  const address = `0x${wallet.publicKey.toString('hex')}`;
  const privateKey = wallet.privateKey.toString('hex');
  return { address, privateKey };
}


const mnemonic = 'your mnemonic';

console.info(generateETHAddresseFromSeed(memonic));

The output address is different with RRWallet, why?


UPDATE: I switched to use ethers and its restored address is exactly the same as RRWallet.

import { Wallet } from 'ethers';


export function generateETHAddresseFromSeed(
  mnemonic: string,
): {
  address: string;
  privateKey: any;
} {
  const wallet = Wallet.fromMnemonic(mnemonic);

  return { address: wallet.address, privateKey: wallet.privateKey };
}


const mnemonic = 'your mnemonic';

console.info(generateETHAddresseFromSeed(memonic));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.