diff --git a/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java index 71bab98..3b8b0d3 100644 --- a/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java +++ b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java @@ -76,7 +76,10 @@ public class PSBTInput { this.redeemScript = redeemScript; this.witnessScript = witnessScript; - this.derivedPublicKeys.putAll(derivedPublicKeys); + if(scriptType != P2TR) { + this.derivedPublicKeys.putAll(derivedPublicKeys); + } + this.proprietary.putAll(proprietary); this.tapInternalKey = tapInternalKey;