Closed dovancao closed 5 years ago
Are you using v0.5.0?
What does example.js output for you?
I also published a tiny GitHub page so you can play with this module in your browser. Putting the following in the console does the right thing for me:
let secret = new Uint8Array([2, 1, 3, 2, 1, 3, 2, 1, 3])
let shares = shamir_tss.generateShares_b64(secret, 3, 10)
Thank Shane. I just wondering that if my input is "interger" or "hex" string or something else. It must be converted to Uint8Array, Right?
Thank you so much. I found my problem. Because my totalshare and threshold share is string
Yes, the Galois field operates on an array of Uint8 values. Happy to help!
Hi there, I'm new on javascipt. when I find some Shamir's Secret Sharing. I found your library and used it. But I got this issue. Can you help me, please? Thank you so much
As my image: