You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, the documentation should be updated to indicate that both Create() and Combine() return TWO parameters: data, error.
Second, the Create() function is returning an array of shards, but as it turns out each of the shards/secrets has the Base64 string twice, thus, attempts to decode the Base64 result in an error. Below a sample output of the first "secret" in the list:
Here is the result of the following statement prior to attempting Base64 decode: fmt.Printf("\nShard #%d %T\n\t%s\n", i, shard, shard, shard)
As you can observe, each of the returned secrets has the Base64 value followed by what it appears to be the same value (repeated) as a result of a badly formatted SPrintf() statement.
The text was updated successfully, but these errors were encountered:
Thanks for the lead. I looked into it but unfortunately it drags a lot of other stuff with it. I settled for RSA Shamir Secret Sharing which is bare ones and has the necessary building blocks.
Create()
andCombine()
return TWO parameters: data, error.Create()
function is returning an array of shards, but as it turns out each of the shards/secrets has the Base64 string twice, thus, attempts to decode the Base64 result in an error. Below a sample output of the first "secret" in the list:Here is the result of the following statement prior to attempting Base64 decode:
fmt.Printf("\nShard #%d %T\n\t%s\n", i, shard, shard, shard)
As you can observe, each of the returned secrets has the Base64 value followed by what it appears to be the same value (repeated) as a result of a badly formatted
SPrintf()
statement.The text was updated successfully, but these errors were encountered: