erasure code base class