Split a blob into k sub-sequences of n octets each.
13.3.Β Segment Operations
def
Jar.Erasure.split (data : ByteArray) (k n : Nat) : Array ByteArrayJar.Erasure.split (data : ByteArray) (k n : Nat) : Array ByteArray
def
Jar.Erasure.join (chunks : Array ByteArray) : ByteArrayJar.Erasure.join (chunks : Array ByteArray) : ByteArray
Join k sub-sequences into a single blob.
def
Jar.Erasure.erasureCodeSegment [Jar.JamConfig] (segment : ByteArray) : Array ByteArrayJar.Erasure.erasureCodeSegment [Jar.JamConfig] (segment : ByteArray) : Array ByteArray
Erasure-code a segment (4104 bytes = W_G) with k=6 parallelism. GP Β§14: segments are W_G = 4104 bytes, encoded with k=6.
def
Jar.Erasure.recoverSegment [Jar.JamConfig] (chunks : Array (ByteArray Γ Nat)) : Option ByteArrayJar.Erasure.recoverSegment [Jar.JamConfig] (chunks : Array (ByteArray Γ Nat)) : Option ByteArray
Recover a segment from validator chunks.