R
fn

computeDivisor

tested

Returns a Reed-Solomon ECC generator polynomial for the given degree. Polynomial coefficients are stored from highest to lowest power, excluding the leading term which is always 1. For example the polynomial x^3 + 255x^2 + 8x + 93 is stored as the uint8 array [255, 8, 93].

Signature

ts
export function computeDivisor(degree: number): Uint8Array{ ... }

Parameters

ParameterTypeDescription
degreenumber

Returns

Uint8Array<ArrayBufferLike>