toTaprootAddress method

P2trAddress toTaprootAddress({
  1. List? scripts,
})

return p2tr address

Implementation

P2trAddress toTaprootAddress({List<dynamic>? scripts}) {
  final pubKey = toTapRotHex(script: scripts);

  return P2trAddress(program: pubKey);
}