@btc-vision/transaction 1.7.11 → 1.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/_version.d.ts +1 -1
- package/browser/index.js +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/transaction/builders/InteractionTransaction.js +6 -0
- package/package.json +1 -1
- package/src/_version.ts +1 -1
- package/src/transaction/builders/InteractionTransaction.ts +10 -0
package/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.7.
|
|
1
|
+
export declare const version = "1.7.12";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.7.
|
|
1
|
+
export const version = '1.7.12';
|
|
@@ -45,6 +45,12 @@ export class InteractionTransaction extends SharedInteractionTransaction {
|
|
|
45
45
|
data: submission,
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
+
if (parameters.revealMLDSAPublicKey && !parameters.linkMLDSAPublicKeyToAddress) {
|
|
49
|
+
throw new Error('To reveal the MLDSA public key, you must set linkMLDSAPublicKeyToAddress to true.');
|
|
50
|
+
}
|
|
51
|
+
if (parameters.linkMLDSAPublicKeyToAddress) {
|
|
52
|
+
this.generateMLDSALinkRequest(parameters, features);
|
|
53
|
+
}
|
|
48
54
|
return features;
|
|
49
55
|
}
|
|
50
56
|
}
|
package/package.json
CHANGED
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.7.
|
|
1
|
+
export const version = '1.7.12';
|
|
@@ -76,6 +76,16 @@ export class InteractionTransaction extends SharedInteractionTransaction<Transac
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
if (parameters.revealMLDSAPublicKey && !parameters.linkMLDSAPublicKeyToAddress) {
|
|
80
|
+
throw new Error(
|
|
81
|
+
'To reveal the MLDSA public key, you must set linkMLDSAPublicKeyToAddress to true.',
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (parameters.linkMLDSAPublicKeyToAddress) {
|
|
86
|
+
this.generateMLDSALinkRequest(parameters, features);
|
|
87
|
+
}
|
|
88
|
+
|
|
79
89
|
return features;
|
|
80
90
|
}
|
|
81
91
|
}
|