toTapRotHex method

String toTapRotHex({
  1. List? script,
})

returns the x coordinate only as hex string after tweaking (needed for taproot)

Implementation

String toTapRotHex({List<dynamic>? script}) {
  final tweak = _calculateTweek(_key, script: script);
  final point = tweakTaprootPoint(_key, tweak);
  return bytesToHex(point.sublist(0, 32));
}