passPoint static method

List<int> passPoint(
  1. List<int> passfactor
)

Calculate the EC point for the pass factor.

  • passfactor: The pass factor for which the EC point is calculated.

Implementation

static List<int> passPoint(List<int> passfactor) {
  /// Get the generator point for the Secp256k1 curve.
  final generator = Curves.generatorSecp256k1;

  /// Convert the pass factor to a big integer.
  final toBig = BigintUtils.fromBytes(passfactor);

  /// Calculate the EC point by scalar multiplication.
  final toPoint = generator * toBig;

  /// Convert the EC point to bytes.
  return toPoint.toBytes();
}