Blockstream / blind_pin_server

MIT License
13 stars 10 forks source link

Help Using the Blind Pin Server #21

Open FastRatRun opened 1 year ago

FastRatRun commented 1 year ago

Hi,

I am having trouble setting up a pin server for personal use out side of jade wallet. Is there documentation on the server API calls?

If not I'd like to just be able to store a bit of data in the server that can only be fetched via the pin.

Thanks!

JamieDriver commented 1 year ago

As it stands the server serves a (initially randomly generated, but then persisted) 32-byte key when a correct PIN is given. If an incorrect PIN is given a random 32-bytes is returned. (This is to make attacks more difficult, as an attacker can't probe with random PINs looking for 'pin incorrect' error responses).

This 32-bytes should be combined with the PIN client side, to yield an AES key, or something very similar, which you can then use client side.

There is no option to push explicit data to the server as it stands.

eg.