geToBytes static method

List<int> geToBytes(
  1. Secp256k1Ge element
)

Implementation

static List<int> geToBytes(Secp256k1Ge element) {
  final p = secp256k1ECkeyPubkeySerialize(element, true);

  if (p == null) {
    throw ArgumentException.invalidOperationArguments(
      "geToEcPoint",
      name: "element",
      reason: "Invalid point data.",
    );
  }
  return p;
}