passPoint static method
Calculate the EC point for the pass factor.
This method computes the elliptic curve (EC) point associated with the provided pass factor. It uses the Secp256k1 curve's generator point and scalar multiplication to derive the EC point.
passfactor
: The pass factor for which the EC point is calculated.- Returns: A List
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();
}