|
|
@ -75,7 +75,7 @@ func main() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// set up encoder
|
|
|
|
// set up encoder
|
|
|
|
erasureParameters, _ := erasure.ValidateParams(k, m, 8, erasure.CAUCHY) |
|
|
|
erasureParameters, _ := erasure.ParseEncoderParams(k, m, erasure.CAUCHY) |
|
|
|
|
|
|
|
|
|
|
|
// decode data
|
|
|
|
// decode data
|
|
|
|
decodedData, err := erasure.Decode(chunks, erasureParameters, length) |
|
|
|
decodedData, err := erasure.Decode(chunks, erasureParameters, length) |
|
|
|