FeFromBytes function

void FeFromBytes(
  1. FieldElement dst,
  2. Uint8List src
)

Implementation

void FeFromBytes(FieldElement dst, Uint8List src) {
  var h0 = load4(src.sublist(0, src.length));
  var h1 = load3(src.sublist(4, src.length)) << 6;
  var h2 = load3(src.sublist(7, src.length)) << 5;
  var h3 = load3(src.sublist(10, src.length)) << 3;
  var h4 = load3(src.sublist(13, src.length)) << 2;
  var h5 = load4(src.sublist(16, src.length));
  var h6 = load3(src.sublist(20, src.length)) << 7;
  var h7 = load3(src.sublist(23, src.length)) << 5;
  var h8 = load3(src.sublist(26, src.length)) << 4;
  var h9 = (load3(src.sublist(29, src.length)) & 8388607) << 2;

  FeCombine(dst, h0, h1, h2, h3, h4, h5, h6, h7, h8, h9);
}