feToBytes static method

List<int> feToBytes(
  1. Secp256k1Fe f
)

convert field to 32 bytes.

Implementation

static List<int> feToBytes(Secp256k1Fe f) {
  final List<int> bytes = List<int>.filled(32, 0);
  Secp256k1.secp256k1FeGetB32(bytes, f);
  return bytes;
}