Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test another wallet with lightwalletd + Zebra #4451

Closed
conradoplg opened this issue May 20, 2022 · 2 comments
Closed

Test another wallet with lightwalletd + Zebra #4451

conradoplg opened this issue May 20, 2022 · 2 comments
Assignees
Labels
C-enhancement Category: This is an improvement lightwalletd any work associated with lightwalletd

Comments

@conradoplg
Copy link
Collaborator

Motivation

Same rationale as #4450, but since ZecWallet might get deprecated, we might want to test with another wallet.

Specifications

Designs

Choose/experiment with other wallets, and test it. One natural choice would be Nighthawk, but it's mobile-only, which may make testing awkward (though you can run it in an Android emulator)

Related Work

@conradoplg conradoplg added C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage P-Medium ⚡ lightwalletd any work associated with lightwalletd labels May 20, 2022
@conradoplg conradoplg self-assigned this May 30, 2022
@conradoplg
Copy link
Collaborator Author

I tested successfully with Nighthawk android with upstream lightwalletd. It showed my balance, and allowed me to send transaction and showed received transactions.

Since it connects to HTTPS, you'll need a certificate for the lightwalletd server.

mkcert <YOUR_IP> 127.0.0.1 localhost

(Substitute with the IP of the machine you're running lightwalletd.)

  • Rename the cert and key to cert.pem and cert.key, put them in the same folder you will run lightwalletd (or point to the files using the lightwalletd CLI, check its help)
  • Start the lightwalletd server WITHOUT ----no-tls-very-insecure

Then run Nighthawk:

  • Checkout source and follow the README instructons (install Android Studio).
  • If an Gradle error shows up, accept the fix
  • Change the build variant (bottom left tab) to zcashtestnetDebug
  • Change the manifest per these instructons (e.g. add a android:networkSecurityConfig="@xml/network_security_config" and create a xml/network_security_config.xml file with the contents in the link
  • Copy the root CA from mkcert (it's in the path reported by mkcert -CAROOT) to raw/debug_cas (i.e. debug_cas is the name of the file)
  • Pair your phone on the device manager (a simulator doesn't work; the app shows an error if you use one)
  • Run the app
  • Change the lightwalletd server to your IP

@ftm1000 ftm1000 removed the S-needs-triage Status: A bug report needs triage label Jun 3, 2022
@conradoplg
Copy link
Collaborator Author

Done, someone reproducing the steps is not needed at this time, Adi might help us test this further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: This is an improvement lightwalletd any work associated with lightwalletd
Projects
None yet
Development

No branches or pull requests

2 participants