P2TRUtils class
Utility class for working with P2TR (Pay-to-Taproot) addresses and operations.
Constructors
Properties
- hashCode → int
 - 
  The hash code for this object.
  no setterinherited
 - runtimeType → Type
 - 
  A representation of the runtime type of the object.
  no setterinherited
 
Methods
- 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a nonexistent method or property is accessed.
  inherited
 - 
  toString(
) → String  - 
  A string representation of this object.
  inherited
 
Operators
- 
  operator ==(
Object other) → bool  - 
  The equality operator.
  inherited
 
Static Methods
- 
  calculateTweek(
ProjectiveECCPoint pubPoint, {List? script}) → List< int>  - _calculateTweek computes and returns the TapTweak value based on the ECPublic key and an optional script. It uses the key's x-coordinate and the Merkle root of the script (if provided) to calculate the tweak.
 - 
  hashTapTweak(
ProjectiveECCPoint pubPoint) → List< int>  - Compute the TapTweak hash for a P2TR address.
 - 
  liftX(
ProjectiveECCPoint pubKeyPoint) → ProjectiveECCPoint  - Lift the x-coordinate of a public key for P2TR.
 - 
  taggedHash(
dynamic tag, List< int> dataBytes) → List<int>  - Compute a tagged hash for P2TR operations.
 - 
  tweakPublicKey(
ProjectiveECCPoint pubPoint, {List? script}) → ProjectiveECCPoint