seedhodler / seedhodler-legacy

Shamir Secret Sharing built for BIP39 / SLIP39 and other crypto seeds
MIT License
14 stars 1 forks source link

QRcode reading #127

Open 1000i100 opened 4 years ago

1000i100 commented 4 years ago

To complete #126, on restore screen, be able to scan back the generated QRcode can be a usage improvement.

Auronmatrix commented 4 years ago

+1

Auronmatrix commented 4 years ago

I've been pondering over this for the last few days. From my pov, the use case would look like this.

  1. User opens local seedhodler site
  2. The user would print their cold shares for cold storage, the printable cold storage share includes the Raw data QR code for that share
  3. When the user want's to restore his shares, he needs to click a "restore from QR" button, which would request permissions to "enable the webcam" in the browser
  4. User shows the shares to the webcam and the raw data is extracted and loaded into the share slot on the local seedhodler site

@efnats / @1000i100 does that workflow make sense to you? Anything to add?

As far as I could tell, there is no native web api's that support QR code scanning, but I found a few libs that would work with the getUserMedia API. Support might be lacking though.

Obviously we need to dig deeper into each lib. Ideally, I would like to keep the library dependency tree for this project as low as possible, so some support / testing / investigation is required.

Libs:

More sources:

1000i100 commented 4 years ago

Great scenario. I think the printed cold share should include QRCode + SLIP39 text version And the restore interface should include text field for SLIP39 text + restore from QRCode button

1000i100 commented 4 years ago
1000i100 commented 2 years ago

https://github.com/paritytech/banana_split do it (but don't let you choose how many parts you want over how many generated)