Files
darkfi/script/research/codes/rssage.sage
2025-04-11 21:11:32 +02:00

12 lines
176 B
Python

F = GF(11)
K.<x> = F[]
n, k = 10 , 5
C = codes.GeneralizedReedSolomonCode(F.list()[:n], k)
E = C.encoder("EvaluationPolynomial")
f = x^2 + 3*x + 10
c = E.encode(f)
print(c)