Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feldman_vss's reconstruct function can not recover the original secret #234

Open
asdfsx opened this issue Mar 27, 2023 · 0 comments
Open

Comments

@asdfsx
Copy link
Contributor

asdfsx commented Mar 27, 2023

I'm trying to use Reconstruct function to recover some data split by vss.Create. So I tried to test the function in feldman_vss_test.go
I add following code into TestReconstruct to display the secret recoverd from the Shares.

fmt.Printf("original secret %v\n", secret.Bytes())
fmt.Printf("secret1 %v\n", secret1.Bytes())
fmt.Printf("secret3 %v\n", secret3.Bytes())
fmt.Printf("secret4 %v\n", secret4.Bytes())

After execute go test, I found some of them doesn't equal to the original one.

...
original secret [145 25 204 52 243 255 144 58 253 167 232 82 77 121 80 10 213 187 211 9 77 113 106 12 195 182 225 72 188 42 45 119]
secret1 [145 25 204 52 243 255 144 58 253 167 232 82 77 121 80 10 213 187 211 9 77 113 106 12 195 182 225 72 188 42 45 119]
secret3 [189 189 68 13 11 90 48 236 70 94 83 105 205 98 197 248 203 158 245 153 37 168 186 42 145 245 189 157 128 18 122 64]
secret4 [145 25 204 52 243 255 144 58 253 167 232 82 77 121 80 10 213 187 211 9 77 113 106 12 195 182 225 72 188 42 45 119]
...

I think all secret should be same, but secret3 is different from others. Is this correct?

@lukasz-zimnoch @omershlo @Shadowfiend @PlamenHristov @yycen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant