MCPcopy Create free account
hub / github.com/ElementsProject/elements / FullDecode

Function FullDecode

src/minisketch/src/sketch_impl.h:346–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345template<typename F>
346std::vector<typename F::Elem> FullDecode(const std::vector<typename F::Elem>& osyndromes, const F& field) {
347 auto asyndromes = ReconstructAllSyndromes<typename F::Elem>(osyndromes, field);
348 auto poly = BerlekampMassey(asyndromes, field);
349 std::reverse(poly.begin(), poly.end());
350 return FindRoots(poly, field);
351}
352
353template<typename F>
354class SketchImpl final : public Sketch

Callers

nothing calls this directly

Calls 4

BerlekampMasseyFunction · 0.85
FindRootsFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected