Key Generation and sharing - formatting confusion
I may be being regarded here, but when creating New FROST Keygen, the instructions are:
"During keygen, copy and paste the things in brackets or quotes in new lines and share them to the correct recipient. It's rather hacky so make sure you enter the correct thing from the correct party at each stage."
I create a 3 / 5:
How many parties will there be? (N): 5 What will the threshold be? (T where T <= N): 3
I open the second terminal, so that it's the second index:
["02d4dc2ad8290bdd23cd77de78dcf5eb23f84950ff8d2937d5975552876cc0357f","02757d1e20edcb58fb1be8693e5cbd8778af1d2f84e3ffbb8584e5e1592e4b8f93","0376e6a1b476a2757d400f056f3bf966c8ac49677cf245da646016b733e479d336"]
Now, with the first instruction, it says to copy and paste the "things in brackets or quotes in new lines", but if you try and enter using that format, it won't be accepted, and you'll get an error:
Error("EOF while parsing a string", line: 1, column: 198) Error("invalid type: string "", expected a sequence", line: 1, column: 2)
It's not until you paste in the key with the brackets and quotes, that it will accept that formatting, therefore, when sharing, should you not just give the file as is? - Should the acceptable formatting be changed?
Excuse my retardation here, but I'm new and very hungry to learn, then hopefully contribute down the line.
I did the retarded thing here, not you!
It needs a drastic reworking, pretty much any encoding would be nicer than what I did here. Yeah sounds like the instructions are incorrect too.
I don't think anything in this repo is worth salvaging beyond the idea. The idea is the fun part :)
If I were to do this properly I would:
- use a nicer serialization, maybe this one https://github.com/LLFourn/rust-base2048, or something with a checksum
- proper error handling (retry if invalid)
- use lastest schnorr_fun frost
- turn this into wasm so it can be done via a webpage
- feature to take an existing nsec and split it into secret shares
- probably some other things I can't think of currently
We're going to get around to nostr eventually at @frostsnap
I must say that it gives me joy that you also find this idea exciting and tried it out 🧡