@@ -964,7 +964,7 @@ func commitPacket(vPkt *tappsbt.VPacket,
964
964
// send. We do the same even for interactive sends to not need
965
965
// to distinguish between the two cases in the proof file
966
966
// itself.
967
- sendTapCommitment , err = trimSplitWitnesses (sendTapCommitment )
967
+ sendTapCommitment , err = TrimSplitWitnesses (sendTapCommitment )
968
968
if err != nil {
969
969
return fmt .Errorf ("error trimming split witnesses: %w" ,
970
970
err )
@@ -1197,7 +1197,7 @@ func AnchorOutputScript(internalKey *btcec.PublicKey,
1197
1197
// Taproot Asset tree of the input anchor output was built with asset
1198
1198
// leaves that had empty SplitCommitments. We need to replicate this
1199
1199
// here as well.
1200
- trimmedCommitment , err := trimSplitWitnesses (anchorCommitment )
1200
+ trimmedCommitment , err := TrimSplitWitnesses (anchorCommitment )
1201
1201
if err != nil {
1202
1202
return nil , emptyHash , emptyHash , fmt .Errorf ("unable to trim " +
1203
1203
"split witnesses: %w" , err )
@@ -1228,9 +1228,9 @@ func AnchorOutputScript(internalKey *btcec.PublicKey,
1228
1228
return script , merkleRoot , taprootAssetRoot , nil
1229
1229
}
1230
1230
1231
- // trimSplitWitnesses returns a copy of the commitment in which all assets with
1231
+ // TrimSplitWitnesses returns a copy of the commitment in which all assets with
1232
1232
// a split commitment witness have their SplitCommitment field set to nil.
1233
- func trimSplitWitnesses (
1233
+ func TrimSplitWitnesses (
1234
1234
c * commitment.TapCommitment ) (* commitment.TapCommitment , error ) {
1235
1235
1236
1236
// If the input asset was received non-interactively, then the Taproot
0 commit comments