MCPcopy Create free account
hub / github.com/akalin/gopar / Coder

Struct Coder

rsec16/coder.go:30–34  ·  view source on GitHub ↗

A Coder is an object that can generate parity shards, verify parity shards, and reconstruct data shards from parity shards.

Source from the content-addressed store, hash-verified

28// A Coder is an object that can generate parity shards, verify parity
29// shards, and reconstruct data shards from parity shards.
30type Coder struct {
31 dataShards, parityShards int
32 numGoroutines int
33 parityMatrix gf2p16.Matrix
34}
35
36func newCauchyParityMatrix(dataShards, parityShards int) gf2p16.Matrix {
37 return newCauchyMatrix(parityShards, dataShards, func(i int) gf2p16.T {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected