tweakPublicKey static method

ProjectiveECCPoint tweakPublicKey(
  1. ProjectiveECCPoint pubPoint, {
  2. List? script,
})

Implementation

static ProjectiveECCPoint tweakPublicKey(ProjectiveECCPoint pubPoint,
    {List<dynamic>? script}) {
  final h = calculateTweek(pubPoint, script: script);
  final n = Curves.generatorSecp256k1 * BigintUtils.fromBytes(h);
  final outPoint = liftX(pubPoint) + n;

  return outPoint as ProjectiveECCPoint;
}