encodeFromBigInt static method
Implementation
static Uint8List encodeFromBigInt(BigInt value) {
final bytes = bigIntToBytes(value);
final result = value.isNegative ? Uint8List(32).complement : Uint8List(32);
result.setAll(32 - bytes.lengthInBytes, bytes);
return result;
}