novasamatech / parity-signer Goto Github PK
View Code? Open in Web Editor NEWAir-gapped crypto wallet.
Home Page: https://www.parity.io/signer/
License: GNU General Public License v3.0
Air-gapped crypto wallet.
Home Page: https://www.parity.io/signer/
License: GNU General Public License v3.0
If it continues to be unreliable, we need to start using fixed versions of packages in package.json
.
The temporary workaround for the issue is to downgrade npm to 5.0
npm install [email protected] -g
Windows 10, 64bit
Parity 1.7
Anytime I open the signer extension, my parity.exe CPU usage shoots to 100%.
As soon as I close the signer extension, CPU drops back to 1-5% for parity....
Have noticed multiple bugs in parity issues described doing that, some with but most without mention of the signer and made comments there as well.
the build.rs script for rust-crypto has a hardcoded dependency on OSX.
here it assumes that the folder name includes 'darwin' whereas on linux it is 'linux'. :-)
Here's what I did:
then native-signer crashes:
04-16 18:50:57.923 7303 7350 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 7350 (mqt_native_modu)
04-16 18:50:58.024 1411 1411 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-16 18:50:58.024 1411 1411 F DEBUG : Build fingerprint: 'google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys'
04-16 18:50:58.024 1411 1411 F DEBUG : Revision: '11'
04-16 18:50:58.024 1411 1411 F DEBUG : ABI: 'arm'
04-16 18:50:58.024 1411 1411 F DEBUG : pid: 7303, tid: 7350, name: mqt_native_modu >>> com.nativesigner <<<
04-16 18:50:58.025 1411 1411 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
04-16 18:50:58.052 1411 1411 F DEBUG : r0 00000000 r1 00001cb6 r2 00000006 r3 9e97d978
04-16 18:50:58.052 1411 1411 F DEBUG : r4 9e97d980 r5 9e97d930 r6 0000000b r7 0000010c
04-16 18:50:58.052 1411 1411 F DEBUG : r8 9cde13a0 r9 9eb05e28 sl 9e97cde4 fp 9e97c660
04-16 18:50:58.052 1411 1411 F DEBUG : ip 00000006 sp 9e97c610 lr b6cebb61 pc b6cedf50 cpsr 400f0010
04-16 18:50:58.072 1411 1411 F DEBUG :
04-16 18:50:58.072 1411 1411 F DEBUG : backtrace:
04-16 18:50:58.072 1411 1411 F DEBUG : #00 pc 00041f50 /system/lib/libc.so (tgkill+12)
04-16 18:50:58.072 1411 1411 F DEBUG : #01 pc 0003fb5d /system/lib/libc.so (pthread_kill+32)
04-16 18:50:58.072 1411 1411 F DEBUG : #02 pc 0001c30f /system/lib/libc.so (raise+10)
04-16 18:50:58.072 1411 1411 F DEBUG : #03 pc 000194c1 /system/lib/libc.so (__libc_android_abort+34)
04-16 18:50:58.072 1411 1411 F DEBUG : #04 pc 000174ac /system/lib/libc.so (abort+4)
04-16 18:50:58.072 1411 1411 F DEBUG : #05 pc 0005118c /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #06 pc 00051ee0 /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #07 pc 00051d78 /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #08 pc 00051bc8 /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #09 pc 00051b04 /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #10 pc 00051aa0 /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #11 pc 0005cb80 /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #12 pc 00005a44 /data/app/com.nativesigner-2/lib/arm/libsigner.so
04-16 18:50:58.072 1411 1411 F DEBUG : #13 pc 0000bdb8 /data/app/com.nativesigner-2/lib/arm/libsigner.so (Java_com_nativesigner_EthkeyBridge_ethkeyDecryptData+928)
04-16 18:50:58.072 1411 1411 F DEBUG : #14 pc 00f14f05 /data/app/com.nativesigner-2/oat/arm/base.odex (offset 0x6b3000) (java.lang.String com.nativesigner.EthkeyBridge.ethkeyDecryptData(java.lang.String, java.lang.String)+112)
04-16 18:50:58.072 1411 1411 F DEBUG : #15 pc 00f15457 /data/app/com.nativesigner-2/oat/arm/base.odex (offset 0x6b3000) (void com.nativesigner.EthkeyBridge.decryptData(java.lang.String, java.lang.String, com.facebook.react.bridge.Promise)+66)
04-16 18:50:58.072 1411 1411 F DEBUG : #16 pc 000e6331 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
04-16 18:50:58.072 1411 1411 F DEBUG : #17 pc 004028a5 /system/lib/libart.so (art_quick_invoke_stub+188)
04-16 18:50:58.072 1411 1411 F DEBUG : #18 pc 00101e04 [stack:7350]
04-16 18:50:59.076 1902 7633 W ActivityManager: Force finishing activity com.nativesigner/.MainActivity
04-16 18:50:59.077 1411 1411 F DEBUG :
04-16 18:50:59.077 1411 1411 F DEBUG : Tombstone written to: /data/tombstones/tombstone_02
04-16 18:50:59.077 1411 1411 E DEBUG : AM write failed: Broken pipe
04-16 18:50:59.127 1902 1914 I WindowState: WIN DEATH: Window{216fa21 u0 com.nativesigner/com.nativesigner.MainActivity}
04-16 18:50:59.127 1902 2408 D GraphicsStats: Buffer count: 4
04-16 18:50:59.138 1902 2016 I OpenGLRenderer: Initialized EGL, version 1.4
04-16 18:50:59.177 1424 1424 I Zygote : Process 7303 exited due to signal (6)
04-16 18:50:59.187 1902 2409 I ActivityManager: Process com.nativesigner (pid 7303) has died
04-16 18:50:59.187 1902 2409 D ActivityManager: cleanUpApplicationRecord -- 7303
04-16 18:50:59.666 1902 1936 W WindowAnimator: Failed to dispatch window animation state change.
04-16 18:50:59.666 1902 1936 W WindowAnimator: android.os.DeadObjectException
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.os.BinderProxy.transactNative(Native Method)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.os.BinderProxy.transact(Binder.java:503)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.view.Choreographer.doCallbacks(Choreographer.java:670)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.view.Choreographer.doFrame(Choreographer.java:603)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.os.Handler.handleCallback(Handler.java:739)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.os.Handler.dispatchMessage(Handler.java:95)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.os.Looper.loop(Looper.java:148)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at android.os.HandlerThread.run(HandlerThread.java:61)
04-16 18:50:59.666 1902 1936 W WindowAnimator: at com.android.server.ServiceThread.run(ServiceThread.java:46)
04-16 18:50:59.753 2451 2665 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
04-16 18:51:27.858 1902 1938 I PowerManagerService: Going to sleep due to screen timeout (uid 1000)...
04-16 18:51:27.859 1902 1938 I PowerManagerService: Sleeping (uid 1000)...
04-16 18:51:27.861 1902 1902 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 7303 uid 10083
04-16 18:51:28.425 1902 1938 V KeyguardServiceDelegate: onScreenTurnedOff()
04-16 18:51:28.444 1902 1936 I DisplayManagerService: Display device changed state: "Built-in Screen", OFF
04-16 18:51:28.447 181 181 D SurfaceFlinger: Set power mode=0, type=0 flinger=0xb6a64000
04-16 18:51:28.447 181 181 D qdhwcomposer: hwc_blank: Blanking display: 0
04-16 18:51:28.722 181 181 D qdhwcomposer: hwc_blank: Done blanking display: 0
04-16 18:51:28.724 1902 2042 D SurfaceControl: Excessive delay in setPowerMode(): 280ms
04-16 18:51:28.725 2676 2677 E ANDR-PERF-LOCK: Failed to apply optimization for resource: 4 level: 0
04-16 18:51:28.746 1902 2025 D WifiConfigStore: Retrieve network priorities after PNO.
04-16 18:51:28.747 1902 2025 E WifiStateMachine: Fail to set up pno, want false now false
04-16 18:51:28.754 1414 1958 D audio_hw_primary: adev_set_parameters: enter: screen_state=off
04-16 18:51:33.064 2079 2079 D PhoneStatusBar: disable: < expand ICONS* alerts SYSTEM_INFO* back home recent clock search quick_settings >
04-16 18:51:33.126 2079 2079 D PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME* RECENT* clock SEARCH* quick_settings >
It should be possible to export a encrypted JSON wallet (standard wallet format) from your account.
Also it might be good to be able to share brain wallet later as well.
Both operations should require a valid PIN before export.
Anything preventing us from using rustup? If not, I'll open a PR.
Not sure why but it's draining my Android batter extremely fast (bothin development and release mode).
Especially when QR tab is activated and even when the app is in the background.
native-signer incorrectly caluclates checksum
Related openethereum/wordlist#2
There is no Buffer
nor Uint8Array
available, so we need something that works in pure JS and has good enough entropy.
Especially the green ones, you cannot tell if the tap was registered by the app.
Currently if you open some account this button doesn't do anything.
the recipient address on the confirmation screen doesn't get checksum-capitalised.
(sender address does)
{
action: "signTransaction",
data: {
account: "",
rlp: "",
}
}
{
action: "signTransactionHash",
data: {
account: "",
hash: "",
details: {
to: "",
value: 0,
...
}
}
}
this is rather low priority, but parity-ui has it so it would be good to also add this feature in future
There should be a popup saying, that account creation hasn't finished.
related #54 (comment)
➜ native-signer git:(master) ✗ react-native run-android
Starting JS server...
Running /home/avo/Android/Sdk/platform-tools/adb -s 192.168.56.101:5555 reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> NDK not configured.
Download it with SDK manager.)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.122 secs
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/android-setup.html
(node:1275) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined
So running for iOS works but on Android this fails on OSX and Ubuntu.
Also, in order for it to work on Ubuntu you have to comment out the brew --prefix
line in ./create_standalone_ndk
.
I have checked the jniLibs contains the correct files for the NDK.
E.g.: After pin is set up, show recovery phrase again w/ a note urging user to write it down and maybe a checkbox?
Every time I create a new account I cannot sign anything, it always says that PIN is incorrect (changing PIN also doesn't work).
create selectable Text
component (eg. to check the block explorer)
Since it's the only mobile app store I use, I am kind of an evangelist for F-Droid which is a a decentralized free/open source only app store for Android. Helpful links:
The second link is for setting up your own repo (hence the decentralized nature) if you would rather host your own that have it in official F-Droid repository.
This user simply got a new phone and tried to sign a new transaction with it, but there was nothing that told him it's not possible.
When creating an account there should be a warning text telling you to back up the brain wallet.
Maybe the app could also propose some ways of backing it up (like splitting into two chunks and uploading somewhere or sending an sms and e-mail)
Or the bar at the bottom should be replaced with some wizard-related buttons (probably the same could be done while in the process of confirming transaction)
Currently it works kind of OK: "Accounts" doesn't do anything (see #7) and "Scan QR" takes you to the scanner and going back to "Accounts" restores the step that you were on.
I think I would rather see the buttons to cancel the current wizard process (with a confirmation)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.