getTaprootOutputKey static method

List<int> getTaprootOutputKey(
  1. Uint8List publicKey
)

The tweaked 32-byte x-only output key committed to by a P2TR address for publicKey — i.e. the key a BIP340 key-path signature actually verifies against, not the untweaked internal public key.

Implementation

static List<int> getTaprootOutputKey(Uint8List publicKey) {
  final pub = _secp256k1.curve.decodePoint(publicKey)!;
  return taprootConstruct(pubKey: pub);
}