edBigIntToBytes function
Implementation
Uint8List edBigIntToBytes(BigInt value, int length) {
final bytes = Uint8List(length);
var temp = value;
for (var i = 0; i < length; i++) {
bytes[i] = (temp & BigInt.from(0xFF)).toInt();
temp >>= 8;
}
return bytes;
}