question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Ledger to account

See original GitHub issue

Story

As a user with a Ledger Nano S, I want to use the Ledger to custody my NEAR account key, so I can more securely store up to $10k worth of assets.

Proposed User Flow

  1. User selects “Add Ledger Nano S to Account” in /profile
  2. Redirected to /setup-ledger
  3. Views instructions (see below) for installing Ledger app, completes installation (on Ledger)
  4. User is prompted to connect Ledger via USB, open the NEAR app i. If error, “Connection failed. Please check that you have the NEAR app open”
  5. User is asked “Would you like to remove your other Full Access Keys?” i. If yes, add Ledger key, remove other Full Access Keys ii. If no, add Ledger key
  6. Redirected to /profile

Notes

Pretty good example of a Ledger flow from MyCrypto: https://beta.mycrypto.com/add-account/ledger_nano_s

Likely instructions to install Ledger App

  1. Open Ledger Live and go to Settings (gear icon on the right):

  1. Enable developer mode (last option):

  1. Now go back to manager and search for NEAR:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
kcole16commented, May 19, 2020

@Patrick1904 @corwinharrell Re: recovery flow and the next step for the Ledger integration: https://github.com/near/near-wallet/issues/589

Also @corwinharrell, still not 100% clear on Nano S vs. X, but my guess is they will both work. Will test this out though. Thoughts @vgrichina ?

1reaction
heycorwincommented, May 18, 2020

@Patrick1904 attaching this desktop modal example for reference. Happy for you to eyeball most of it, margins/padding don’t need to be exact.

For the animation. I’m thinking of animating transition: translateY(-16px) to transition: translateY(0px), and then opacity from 0 to 1. I have the animation duration at 300ms. Clicking outside of the modal would dismiss the modal, and the transparent modal container would also have its opacity animate in at the same speed as the modal itself. Pretty basic. There is a small hover state for the close button on desktop.

Key differences between the desktop and mobile are the positioning. Mobile is positioned at the bottom with justify-content: flex-end whereas the desktop version is centered. The border radii are also different on mobile to mimic the native iOS action sheet. Let me know what you think:

modal_animation

Taking a look at your proposed recovery flow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are apps and accounts?
Accounts in Ledger Live have separated balances to provide flexibility in managing your crypto assets. You can add multiple accounts for ...
Read more >
Account Creation on Ledger Live - YouTube
In this video, we are showing you how to install an app and add an account on Ledger Live. Please do note that...
Read more >
Create or edit a ledger account - Sage Accounting
Go to Settings, Business settings, Chart of Accounts. Select New ledger account. Enter the details and Save. The fields marked with asterisk * ......
Read more >
MetaMask and Ledger Integration Fixed!
This made securing your MetaMask account with a Ledger Nano hardware wallet ... This update added additional restrictions to the authentication methods that ......
Read more >
How to add a new account in the General Ledger 7
How to add a new account in the General Ledger 7 · Additional accounts can be created for use in The Financial Edge....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found