@scure/btc-signer 2.3.0 → 2.4.1

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/psbt.d.ts CHANGED
@@ -1,5 +1,17 @@
1
1
  import * as P from 'micro-packed';
2
2
  import { type Bytes, type TArg, type TRet } from './utils.ts';
3
+ /**
4
+ * Policy for PSBT fields this version does not understand.
5
+ *
6
+ * `ignore` preserves data for forward interoperability, but the library may operate without
7
+ * understanding future constraints. `strip` accepts then removes it, which can itself break
8
+ * interoperability with newer participants; `strict` rejects it. Non-`ignore` behavior also
9
+ * fingerprints noble/scure and potentially its version. When the original boolean handling was
10
+ * added, the PSBT registry had no assigned fields unknown to this library; assigned extensions are
11
+ * now explicit table entries and do not use this policy.
12
+ */
13
+ export type Unknowns = 'ignore' | 'strip' | 'strict';
14
+ type UnknownsArg = Unknowns | boolean;
3
15
  /**
4
16
  * Taproot control block coder.
5
17
  * @example
@@ -19,6 +31,12 @@ export declare const TaprootControlBlock: Readonly<P.CoderType<P.StructInput<{
19
31
  internalKey: P.Bytes;
20
32
  merklePath: P.Bytes[];
21
33
  }>>>;
34
+ type MuSig2Key = {
35
+ participantPubkey: Bytes;
36
+ aggregatePubkey: Bytes;
37
+ leafHash?: Bytes;
38
+ };
39
+ declare const MuSig2Key: P.CoderType<TArg<MuSig2Key>>;
22
40
  type PSBTKeyCoder = P.CoderType<any> | false;
23
41
  type PSBTKeyMapInfo = Readonly<[
24
42
  number,
@@ -68,6 +86,9 @@ export declare const PSBTGlobal: Readonly<{
68
86
  readonly inputCount: readonly [number, false, P.CoderType<number>, number[], number[], false];
69
87
  readonly outputCount: readonly [number, false, P.CoderType<number>, number[], number[], false];
70
88
  readonly txModifiable: readonly [number, false, P.CoderType<number>, never[], number[], false];
89
+ readonly spEcdhShare: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
90
+ readonly spDleq: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
91
+ readonly genericSignedMessage: readonly [number, false, P.CoderType<Bytes>, never[], number[], false];
71
92
  readonly version: readonly [number, false, P.CoderType<number>, never[], number[], false];
72
93
  readonly proprietary: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
73
94
  }>;
@@ -145,6 +166,17 @@ export declare const PSBTInput: Readonly<{
145
166
  }>>, never[], number[], false];
146
167
  readonly tapInternalKey: readonly [number, false, P.CoderType<Bytes>, never[], number[], false];
147
168
  readonly tapMerkleRoot: readonly [number, false, P.CoderType<Bytes>, never[], number[], false];
169
+ readonly p2cKeyTweak: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
170
+ readonly musig2ParticipantPubkeys: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes[]>, never[], number[], false];
171
+ readonly musig2PubNonce: readonly [number, P.CoderType<TArg<MuSig2Key>>, P.CoderType<Bytes>, never[], number[], false];
172
+ readonly musig2PartialSig: readonly [number, P.CoderType<TArg<MuSig2Key>>, P.CoderType<Bytes>, never[], number[], false];
173
+ readonly spEcdhShare: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
174
+ readonly spDleq: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
175
+ readonly spSpendBip32Derivation: readonly [number, P.CoderType<Bytes>, P.CoderType<P.StructInput<{
176
+ fingerprint: number;
177
+ path: number[];
178
+ }>>, never[], number[], false];
179
+ readonly spTweak: readonly [number, false, P.CoderType<Bytes>, never[], number[], false];
148
180
  readonly proprietary: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
149
181
  }>;
150
182
  /**
@@ -157,18 +189,25 @@ export declare const PSBTInput: Readonly<{
157
189
  * finalKeys.has('finalScriptWitness');
158
190
  * ```
159
191
  */
160
- export declare const PSBTInputFinalKeys: readonly ("index" | "unknown" | "sequence" | "txid" | "finalScriptSig" | "proprietary" | "nonWitnessUtxo" | "witnessUtxo" | "partialSig" | "sighashType" | "redeemScript" | "witnessScript" | "bip32Derivation" | "finalScriptWitness" | "porCommitment" | "ripemd160" | "sha256" | "hash160" | "hash256" | "requiredTimeLocktime" | "requiredHeightLocktime" | "tapKeySig" | "tapScriptSig" | "tapLeafScript" | "tapBip32Derivation" | "tapInternalKey" | "tapMerkleRoot")[];
192
+ export declare const PSBTInputFinalKeys: readonly ("index" | "unknown" | "sequence" | "txid" | "finalScriptSig" | "spEcdhShare" | "spDleq" | "proprietary" | "nonWitnessUtxo" | "witnessUtxo" | "partialSig" | "sighashType" | "redeemScript" | "witnessScript" | "bip32Derivation" | "finalScriptWitness" | "porCommitment" | "ripemd160" | "sha256" | "hash160" | "hash256" | "requiredTimeLocktime" | "requiredHeightLocktime" | "tapKeySig" | "tapScriptSig" | "tapLeafScript" | "tapBip32Derivation" | "tapInternalKey" | "tapMerkleRoot" | "p2cKeyTweak" | "musig2ParticipantPubkeys" | "musig2PubNonce" | "musig2PartialSig" | "spSpendBip32Derivation" | "spTweak")[];
161
193
  /**
162
- * Input fields that may still change after signing starts.
194
+ * Signature and final-satisfaction fields used while reopening a finalized input.
163
195
  * @example
164
- * Signed inputs may still update these fields while new signatures are being added.
196
+ * Finalized inputs may remove their existing satisfaction before further mutation.
165
197
  * ```ts
166
- * import { PSBTInputUnsignedKeys } from '@scure/btc-signer/psbt.js';
167
- * const mutableKeys = new Set(PSBTInputUnsignedKeys);
198
+ * import { PSBTInputSignatureKeys } from '@scure/btc-signer/psbt.js';
199
+ * const mutableKeys = new Set(PSBTInputSignatureKeys);
168
200
  * mutableKeys.has('tapScriptSig');
169
201
  * ```
170
202
  */
171
- export declare const PSBTInputUnsignedKeys: readonly ("index" | "unknown" | "sequence" | "txid" | "finalScriptSig" | "proprietary" | "nonWitnessUtxo" | "witnessUtxo" | "partialSig" | "sighashType" | "redeemScript" | "witnessScript" | "bip32Derivation" | "finalScriptWitness" | "porCommitment" | "ripemd160" | "sha256" | "hash160" | "hash256" | "requiredTimeLocktime" | "requiredHeightLocktime" | "tapKeySig" | "tapScriptSig" | "tapLeafScript" | "tapBip32Derivation" | "tapInternalKey" | "tapMerkleRoot")[];
203
+ export declare const PSBTInputSignatureKeys: readonly ("index" | "unknown" | "sequence" | "txid" | "finalScriptSig" | "spEcdhShare" | "spDleq" | "proprietary" | "nonWitnessUtxo" | "witnessUtxo" | "partialSig" | "sighashType" | "redeemScript" | "witnessScript" | "bip32Derivation" | "finalScriptWitness" | "porCommitment" | "ripemd160" | "sha256" | "hash160" | "hash256" | "requiredTimeLocktime" | "requiredHeightLocktime" | "tapKeySig" | "tapScriptSig" | "tapLeafScript" | "tapBip32Derivation" | "tapInternalKey" | "tapMerkleRoot" | "p2cKeyTweak" | "musig2ParticipantPubkeys" | "musig2PubNonce" | "musig2PartialSig" | "spSpendBip32Derivation" | "spTweak")[];
204
+ /**
205
+ * A static list cannot describe mutable input fields because that depends on each signature's
206
+ * algorithm, sighash, and target index.
207
+ * @deprecated Use {@link PSBTInputSignatureKeys} only for signature/final-satisfaction records;
208
+ * transaction mutation is enforced by {@link Transaction.updateInput}.
209
+ */
210
+ export declare const PSBTInputUnsignedKeys: readonly ("index" | "unknown" | "sequence" | "txid" | "finalScriptSig" | "spEcdhShare" | "spDleq" | "proprietary" | "nonWitnessUtxo" | "witnessUtxo" | "partialSig" | "sighashType" | "redeemScript" | "witnessScript" | "bip32Derivation" | "finalScriptWitness" | "porCommitment" | "ripemd160" | "sha256" | "hash160" | "hash256" | "requiredTimeLocktime" | "requiredHeightLocktime" | "tapKeySig" | "tapScriptSig" | "tapLeafScript" | "tapBip32Derivation" | "tapInternalKey" | "tapMerkleRoot" | "p2cKeyTweak" | "musig2ParticipantPubkeys" | "musig2PubNonce" | "musig2PartialSig" | "spSpendBip32Derivation" | "spTweak")[];
172
211
  /**
173
212
  * PSBT output key definitions.
174
213
  * @example
@@ -200,6 +239,16 @@ export declare const PSBTOutput: Readonly<{
200
239
  path: /*elided*/ any;
201
240
  }>;
202
241
  }>>, never[], number[], false];
242
+ readonly musig2ParticipantPubkeys: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes[]>, never[], number[], false];
243
+ readonly spV0Info: readonly [number, false, P.CoderType<P.StructInput<{
244
+ scanKey: Bytes;
245
+ spendKey: Bytes;
246
+ }>>, never[], number[], false];
247
+ readonly spV0Label: readonly [number, false, P.CoderType<number>, never[], number[], false];
248
+ readonly dnssecProof: readonly [number, false, P.CoderType<P.StructInput<{
249
+ name: P.Bytes;
250
+ proof: Bytes;
251
+ }>>, never[], number[], false];
203
252
  readonly proprietary: readonly [number, P.CoderType<Bytes>, P.CoderType<Bytes>, never[], number[], false];
204
253
  }>;
205
254
  /**
@@ -212,7 +261,7 @@ export declare const PSBTOutput: Readonly<{
212
261
  * mutableKeys.size; // 0
213
262
  * ```
214
263
  */
215
- export declare const PSBTOutputUnsignedKeys: readonly ("script" | "amount" | "proprietary" | "redeemScript" | "witnessScript" | "bip32Derivation" | "tapBip32Derivation" | "tapInternalKey" | "tapTree")[];
264
+ export declare const PSBTOutputUnsignedKeys: readonly ("script" | "amount" | "proprietary" | "redeemScript" | "witnessScript" | "bip32Derivation" | "tapBip32Derivation" | "tapInternalKey" | "musig2ParticipantPubkeys" | "tapTree" | "spV0Info" | "spV0Label" | "dnssecProof")[];
216
265
  type PSBTKeyMap = Record<string, PSBTKeyMapInfo>;
217
266
  declare const PSBTUnknownKey: P.CoderType<P.StructInput<{
218
267
  type: number;
@@ -300,6 +349,17 @@ export declare const PSBTInputCoder: Readonly<P.CoderType<{
300
349
  }>][] | undefined;
301
350
  tapInternalKey?: Bytes | undefined;
302
351
  tapMerkleRoot?: Bytes | undefined;
352
+ p2cKeyTweak?: [Bytes, Bytes][] | undefined;
353
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
354
+ musig2PubNonce?: [TArg<MuSig2Key>, Bytes][] | undefined;
355
+ musig2PartialSig?: [TArg<MuSig2Key>, Bytes][] | undefined;
356
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
357
+ spDleq?: [Bytes, Bytes][] | undefined;
358
+ spSpendBip32Derivation?: [Bytes, P.StructInput<{
359
+ fingerprint: number;
360
+ path: number[];
361
+ }>][] | undefined;
362
+ spTweak?: Bytes | undefined;
303
363
  proprietary?: [Bytes, Bytes][] | undefined;
304
364
  } & PSBTUnknownFields & {
305
365
  nonWitnessUtxo?: ({
@@ -447,6 +507,50 @@ export declare const PSBTInputCoder: Readonly<P.CoderType<{
447
507
  }])[]) | undefined;
448
508
  tapInternalKey?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
449
509
  tapMerkleRoot?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
510
+ p2cKeyTweak?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
511
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
512
+ musig2PubNonce?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
513
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
514
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
515
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
516
+ }) | ({
517
+ participantPubkey: TArg<Bytes>;
518
+ aggregatePubkey: TArg<Bytes>;
519
+ leafHash?: TArg<Bytes | undefined>;
520
+ } & {
521
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
522
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
523
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
524
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
525
+ musig2PartialSig?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
526
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
527
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
528
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
529
+ }) | ({
530
+ participantPubkey: TArg<Bytes>;
531
+ aggregatePubkey: TArg<Bytes>;
532
+ leafHash?: TArg<Bytes | undefined>;
533
+ } & {
534
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
535
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
536
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
537
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
538
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
539
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
540
+ spSpendBip32Derivation?: ([Bytes, P.StructInput<{
541
+ fingerprint: number;
542
+ path: number[];
543
+ }>][] & ([Bytes, P.StructInput<{
544
+ fingerprint: number;
545
+ path: number[];
546
+ }>] & [Bytes & Uint8Array<ArrayBuffer>, {
547
+ path: number[];
548
+ fingerprint: number;
549
+ } & {} & {
550
+ path: number[] & number[];
551
+ fingerprint: number;
552
+ }])[]) | undefined;
553
+ spTweak?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
450
554
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
451
555
  unknown?: ([P.StructInput<{
452
556
  type: number;
@@ -508,6 +612,16 @@ export declare const PSBTOutputCoder: Readonly<P.CoderType<{
508
612
  path: /*elided*/ any;
509
613
  }>;
510
614
  }>][] | undefined;
615
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
616
+ spV0Info?: P.StructInput<{
617
+ scanKey: Bytes;
618
+ spendKey: Bytes;
619
+ }> | undefined;
620
+ spV0Label?: number | undefined;
621
+ dnssecProof?: P.StructInput<{
622
+ name: P.Bytes;
623
+ proof: Bytes;
624
+ }> | undefined;
511
625
  proprietary?: [Bytes, Bytes][] | undefined;
512
626
  } & PSBTUnknownFields & {
513
627
  redeemScript?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
@@ -569,6 +683,22 @@ export declare const PSBTOutputCoder: Readonly<P.CoderType<{
569
683
  };
570
684
  hashes: P.Bytes[] & (P.Bytes & Uint8Array<ArrayBuffer>)[];
571
685
  }])[]) | undefined;
686
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
687
+ spV0Info?: ({
688
+ scanKey: Bytes;
689
+ spendKey: Bytes;
690
+ } & {} & {
691
+ scanKey: Bytes & Uint8Array<ArrayBuffer>;
692
+ spendKey: Bytes & Uint8Array<ArrayBuffer>;
693
+ }) | undefined;
694
+ spV0Label?: number | undefined;
695
+ dnssecProof?: ({
696
+ name: P.Bytes;
697
+ proof: Bytes;
698
+ } & {} & {
699
+ name: P.Bytes & Uint8Array<ArrayBuffer>;
700
+ proof: Bytes & Uint8Array<ArrayBuffer>;
701
+ }) | undefined;
572
702
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
573
703
  unknown?: ([P.StructInput<{
574
704
  type: number;
@@ -622,6 +752,9 @@ export declare const _RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
622
752
  inputCount?: number | undefined;
623
753
  outputCount?: number | undefined;
624
754
  txModifiable?: number | undefined;
755
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
756
+ spDleq?: [Bytes, Bytes][] | undefined;
757
+ genericSignedMessage?: Bytes | undefined;
625
758
  version?: number | undefined;
626
759
  proprietary?: [Bytes, Bytes][] | undefined;
627
760
  } & PSBTUnknownFields & {
@@ -714,6 +847,9 @@ export declare const _RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
714
847
  inputCount?: number | undefined;
715
848
  outputCount?: number | undefined;
716
849
  txModifiable?: number | undefined;
850
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
851
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
852
+ genericSignedMessage?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
717
853
  version?: number | undefined;
718
854
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
719
855
  unknown?: ([P.StructInput<{
@@ -779,6 +915,17 @@ export declare const _RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
779
915
  }>][] | undefined;
780
916
  tapInternalKey?: Bytes | undefined;
781
917
  tapMerkleRoot?: Bytes | undefined;
918
+ p2cKeyTweak?: [Bytes, Bytes][] | undefined;
919
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
920
+ musig2PubNonce?: [TArg<MuSig2Key>, Bytes][] | undefined;
921
+ musig2PartialSig?: [TArg<MuSig2Key>, Bytes][] | undefined;
922
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
923
+ spDleq?: [Bytes, Bytes][] | undefined;
924
+ spSpendBip32Derivation?: [Bytes, P.StructInput<{
925
+ fingerprint: /*elided*/ any;
926
+ path: /*elided*/ any;
927
+ }>][] | undefined;
928
+ spTweak?: Bytes | undefined;
782
929
  proprietary?: [Bytes, Bytes][] | undefined;
783
930
  } & PSBTUnknownFields & {
784
931
  nonWitnessUtxo?: ({
@@ -920,6 +1067,50 @@ export declare const _RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
920
1067
  }])[]) | undefined;
921
1068
  tapInternalKey?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
922
1069
  tapMerkleRoot?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1070
+ p2cKeyTweak?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1071
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
1072
+ musig2PubNonce?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
1073
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
1074
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
1075
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1076
+ }) | ({
1077
+ participantPubkey: TArg<Bytes>;
1078
+ aggregatePubkey: TArg<Bytes>;
1079
+ leafHash?: TArg<Bytes | undefined>;
1080
+ } & {
1081
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1082
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1083
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
1084
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1085
+ musig2PartialSig?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
1086
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
1087
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
1088
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1089
+ }) | ({
1090
+ participantPubkey: TArg<Bytes>;
1091
+ aggregatePubkey: TArg<Bytes>;
1092
+ leafHash?: TArg<Bytes | undefined>;
1093
+ } & {
1094
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1095
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1096
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
1097
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1098
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1099
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1100
+ spSpendBip32Derivation?: ([Bytes, P.StructInput<{
1101
+ fingerprint: /*elided*/ any;
1102
+ path: /*elided*/ any;
1103
+ }>][] & ([Bytes, P.StructInput<{
1104
+ fingerprint: /*elided*/ any;
1105
+ path: /*elided*/ any;
1106
+ }>] & [Bytes & Uint8Array<ArrayBuffer>, {
1107
+ path: number[];
1108
+ fingerprint: number;
1109
+ } & {} & {
1110
+ path: number[] & number[];
1111
+ fingerprint: number;
1112
+ }])[]) | undefined;
1113
+ spTweak?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
923
1114
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
924
1115
  unknown?: ([P.StructInput<{
925
1116
  type: number;
@@ -954,6 +1145,16 @@ export declare const _RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
954
1145
  hashes: /*elided*/ any;
955
1146
  der: /*elided*/ any;
956
1147
  }>][] | undefined;
1148
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
1149
+ spV0Info?: P.StructInput<{
1150
+ scanKey: /*elided*/ any;
1151
+ spendKey: /*elided*/ any;
1152
+ }> | undefined;
1153
+ spV0Label?: number | undefined;
1154
+ dnssecProof?: P.StructInput<{
1155
+ name: /*elided*/ any;
1156
+ proof: /*elided*/ any;
1157
+ }> | undefined;
957
1158
  proprietary?: [Bytes, Bytes][] | undefined;
958
1159
  } & PSBTUnknownFields & {
959
1160
  redeemScript?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
@@ -1009,6 +1210,22 @@ export declare const _RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1009
1210
  };
1010
1211
  hashes: P.Bytes[] & (P.Bytes & Uint8Array<ArrayBuffer>)[];
1011
1212
  }])[]) | undefined;
1213
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
1214
+ spV0Info?: ({
1215
+ scanKey: Bytes;
1216
+ spendKey: Bytes;
1217
+ } & {} & {
1218
+ scanKey: Bytes & Uint8Array<ArrayBuffer>;
1219
+ spendKey: Bytes & Uint8Array<ArrayBuffer>;
1220
+ }) | undefined;
1221
+ spV0Label?: number | undefined;
1222
+ dnssecProof?: ({
1223
+ name: P.Bytes;
1224
+ proof: Bytes;
1225
+ } & {} & {
1226
+ name: P.Bytes & Uint8Array<ArrayBuffer>;
1227
+ proof: Bytes & Uint8Array<ArrayBuffer>;
1228
+ }) | undefined;
1012
1229
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1013
1230
  unknown?: ([P.StructInput<{
1014
1231
  type: number;
@@ -1050,6 +1267,9 @@ export declare const _RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
1050
1267
  inputCount?: number | undefined;
1051
1268
  outputCount?: number | undefined;
1052
1269
  txModifiable?: number | undefined;
1270
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
1271
+ spDleq?: [Bytes, Bytes][] | undefined;
1272
+ genericSignedMessage?: Bytes | undefined;
1053
1273
  version?: number | undefined;
1054
1274
  proprietary?: [Bytes, Bytes][] | undefined;
1055
1275
  } & PSBTUnknownFields & {
@@ -1142,6 +1362,9 @@ export declare const _RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
1142
1362
  inputCount?: number | undefined;
1143
1363
  outputCount?: number | undefined;
1144
1364
  txModifiable?: number | undefined;
1365
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1366
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1367
+ genericSignedMessage?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1145
1368
  version?: number | undefined;
1146
1369
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1147
1370
  unknown?: ([P.StructInput<{
@@ -1207,6 +1430,17 @@ export declare const _RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
1207
1430
  }>][] | undefined;
1208
1431
  tapInternalKey?: Bytes | undefined;
1209
1432
  tapMerkleRoot?: Bytes | undefined;
1433
+ p2cKeyTweak?: [Bytes, Bytes][] | undefined;
1434
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
1435
+ musig2PubNonce?: [TArg<MuSig2Key>, Bytes][] | undefined;
1436
+ musig2PartialSig?: [TArg<MuSig2Key>, Bytes][] | undefined;
1437
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
1438
+ spDleq?: [Bytes, Bytes][] | undefined;
1439
+ spSpendBip32Derivation?: [Bytes, P.StructInput<{
1440
+ fingerprint: /*elided*/ any;
1441
+ path: /*elided*/ any;
1442
+ }>][] | undefined;
1443
+ spTweak?: Bytes | undefined;
1210
1444
  proprietary?: [Bytes, Bytes][] | undefined;
1211
1445
  } & PSBTUnknownFields & {
1212
1446
  nonWitnessUtxo?: ({
@@ -1348,6 +1582,50 @@ export declare const _RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
1348
1582
  }])[]) | undefined;
1349
1583
  tapInternalKey?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1350
1584
  tapMerkleRoot?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1585
+ p2cKeyTweak?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1586
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
1587
+ musig2PubNonce?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
1588
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
1589
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
1590
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1591
+ }) | ({
1592
+ participantPubkey: TArg<Bytes>;
1593
+ aggregatePubkey: TArg<Bytes>;
1594
+ leafHash?: TArg<Bytes | undefined>;
1595
+ } & {
1596
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1597
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1598
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
1599
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1600
+ musig2PartialSig?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
1601
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
1602
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
1603
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1604
+ }) | ({
1605
+ participantPubkey: TArg<Bytes>;
1606
+ aggregatePubkey: TArg<Bytes>;
1607
+ leafHash?: TArg<Bytes | undefined>;
1608
+ } & {
1609
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1610
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
1611
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
1612
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1613
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1614
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1615
+ spSpendBip32Derivation?: ([Bytes, P.StructInput<{
1616
+ fingerprint: /*elided*/ any;
1617
+ path: /*elided*/ any;
1618
+ }>][] & ([Bytes, P.StructInput<{
1619
+ fingerprint: /*elided*/ any;
1620
+ path: /*elided*/ any;
1621
+ }>] & [Bytes & Uint8Array<ArrayBuffer>, {
1622
+ path: number[];
1623
+ fingerprint: number;
1624
+ } & {} & {
1625
+ path: number[] & number[];
1626
+ fingerprint: number;
1627
+ }])[]) | undefined;
1628
+ spTweak?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1351
1629
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1352
1630
  unknown?: ([P.StructInput<{
1353
1631
  type: number;
@@ -1382,6 +1660,16 @@ export declare const _RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
1382
1660
  hashes: /*elided*/ any;
1383
1661
  der: /*elided*/ any;
1384
1662
  }>][] | undefined;
1663
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
1664
+ spV0Info?: P.StructInput<{
1665
+ scanKey: /*elided*/ any;
1666
+ spendKey: /*elided*/ any;
1667
+ }> | undefined;
1668
+ spV0Label?: number | undefined;
1669
+ dnssecProof?: P.StructInput<{
1670
+ name: /*elided*/ any;
1671
+ proof: /*elided*/ any;
1672
+ }> | undefined;
1385
1673
  proprietary?: [Bytes, Bytes][] | undefined;
1386
1674
  } & PSBTUnknownFields & {
1387
1675
  redeemScript?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
@@ -1437,6 +1725,22 @@ export declare const _RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
1437
1725
  };
1438
1726
  hashes: P.Bytes[] & (P.Bytes & Uint8Array<ArrayBuffer>)[];
1439
1727
  }])[]) | undefined;
1728
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
1729
+ spV0Info?: ({
1730
+ scanKey: Bytes;
1731
+ spendKey: Bytes;
1732
+ } & {} & {
1733
+ scanKey: Bytes & Uint8Array<ArrayBuffer>;
1734
+ spendKey: Bytes & Uint8Array<ArrayBuffer>;
1735
+ }) | undefined;
1736
+ spV0Label?: number | undefined;
1737
+ dnssecProof?: ({
1738
+ name: P.Bytes;
1739
+ proof: Bytes;
1740
+ } & {} & {
1741
+ name: P.Bytes & Uint8Array<ArrayBuffer>;
1742
+ proof: Bytes & Uint8Array<ArrayBuffer>;
1743
+ }) | undefined;
1440
1744
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1441
1745
  unknown?: ([P.StructInput<{
1442
1746
  type: number;
@@ -1484,7 +1788,8 @@ export declare function cleanPSBTFields<T extends PSBTKeyMap>(version: number, i
1484
1788
  * @param val - new values to merge in
1485
1789
  * @param cur - existing decoded PSBT key map
1486
1790
  * @param allowedFields - fields still allowed to change
1487
- * @param allowUnknown - whether to preserve unknown PSBT fields
1791
+ * @param unknown - handling policy for unknown PSBT fields
1792
+ * @param proprietary - handling policy for proprietary PSBT fields
1488
1793
  * @returns Merged PSBT key map.
1489
1794
  * @throws If keyed PSBT fields conflict or signed fields would be removed. {@link Error}
1490
1795
  * @example
@@ -1502,7 +1807,25 @@ export declare function cleanPSBTFields<T extends PSBTKeyMap>(version: number, i
1502
1807
  * );
1503
1808
  * ```
1504
1809
  */
1505
- export declare function mergeKeyMap<T extends PSBTKeyMap>(psbtEnum: T, val: TArg<PSBTKeyMapKeys<T>>, cur?: TArg<PSBTKeyMapKeys<T>>, allowedFields?: TArg<readonly (keyof PSBTKeyMapKeys<T>)[]>, allowUnknown?: boolean): TRet<PSBTKeyMapKeys<T>>;
1810
+ export declare function mergeKeyMap<T extends PSBTKeyMap>(psbtEnum: T, val: TArg<PSBTKeyMapKeys<T>>, cur?: TArg<PSBTKeyMapKeys<T>>, allowedFields?: TArg<readonly (keyof PSBTKeyMapKeys<T>)[]>, unknown?: UnknownsArg, proprietary?: UnknownsArg): TRet<PSBTKeyMapKeys<T>>;
1811
+ /**
1812
+ * Combines two independently produced PSBT maps without choosing between conflicting scalar
1813
+ * values. Keyed fields retain {@link mergeKeyMap}'s union semantics.
1814
+ * @param psbtEnum - PSBT field definition table
1815
+ * @param current - first map
1816
+ * @param other - second map
1817
+ * @param unknown - handling policy for unknown PSBT fields
1818
+ * @param proprietary - handling policy for proprietary PSBT fields
1819
+ * @returns The symmetric map union.
1820
+ * @throws If both maps provide different values for the same scalar field. {@link Error}
1821
+ * @example
1822
+ * Combine disjoint global metadata without choosing an operand as authoritative.
1823
+ * ```ts
1824
+ * import { combineKeyMap, PSBTGlobal } from '@scure/btc-signer/psbt.js';
1825
+ * combineKeyMap(PSBTGlobal, { txVersion: 2 }, { fallbackLocktime: 0 });
1826
+ * ```
1827
+ */
1828
+ export declare function combineKeyMap<T extends PSBTKeyMap>(psbtEnum: T, current: TArg<PSBTKeyMapKeys<T>>, other: TArg<PSBTKeyMapKeys<T>>, unknown?: UnknownsArg, proprietary?: UnknownsArg): TRet<PSBTKeyMapKeys<T>>;
1506
1829
  /** Validated PSBTv0 coder. */
1507
1830
  export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1508
1831
  magic: undefined;
@@ -1529,6 +1852,9 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1529
1852
  inputCount?: number | undefined;
1530
1853
  outputCount?: number | undefined;
1531
1854
  txModifiable?: number | undefined;
1855
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
1856
+ spDleq?: [Bytes, Bytes][] | undefined;
1857
+ genericSignedMessage?: Bytes | undefined;
1532
1858
  version?: number | undefined;
1533
1859
  proprietary?: [Bytes, Bytes][] | undefined;
1534
1860
  } & PSBTUnknownFields & {
@@ -1621,6 +1947,9 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1621
1947
  inputCount?: number | undefined;
1622
1948
  outputCount?: number | undefined;
1623
1949
  txModifiable?: number | undefined;
1950
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1951
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1952
+ genericSignedMessage?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1624
1953
  version?: number | undefined;
1625
1954
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1626
1955
  unknown?: ([P.StructInput<{
@@ -1686,6 +2015,17 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1686
2015
  }>][] | undefined;
1687
2016
  tapInternalKey?: Bytes | undefined;
1688
2017
  tapMerkleRoot?: Bytes | undefined;
2018
+ p2cKeyTweak?: [Bytes, Bytes][] | undefined;
2019
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
2020
+ musig2PubNonce?: [TArg<MuSig2Key>, Bytes][] | undefined;
2021
+ musig2PartialSig?: [TArg<MuSig2Key>, Bytes][] | undefined;
2022
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
2023
+ spDleq?: [Bytes, Bytes][] | undefined;
2024
+ spSpendBip32Derivation?: [Bytes, P.StructInput<{
2025
+ fingerprint: /*elided*/ any;
2026
+ path: /*elided*/ any;
2027
+ }>][] | undefined;
2028
+ spTweak?: Bytes | undefined;
1689
2029
  proprietary?: [Bytes, Bytes][] | undefined;
1690
2030
  } & PSBTUnknownFields & {
1691
2031
  nonWitnessUtxo?: ({
@@ -1827,6 +2167,50 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1827
2167
  }])[]) | undefined;
1828
2168
  tapInternalKey?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1829
2169
  tapMerkleRoot?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2170
+ p2cKeyTweak?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2171
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
2172
+ musig2PubNonce?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
2173
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
2174
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
2175
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2176
+ }) | ({
2177
+ participantPubkey: TArg<Bytes>;
2178
+ aggregatePubkey: TArg<Bytes>;
2179
+ leafHash?: TArg<Bytes | undefined>;
2180
+ } & {
2181
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2182
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2183
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
2184
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2185
+ musig2PartialSig?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
2186
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
2187
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
2188
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2189
+ }) | ({
2190
+ participantPubkey: TArg<Bytes>;
2191
+ aggregatePubkey: TArg<Bytes>;
2192
+ leafHash?: TArg<Bytes | undefined>;
2193
+ } & {
2194
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2195
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2196
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
2197
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2198
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2199
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2200
+ spSpendBip32Derivation?: ([Bytes, P.StructInput<{
2201
+ fingerprint: /*elided*/ any;
2202
+ path: /*elided*/ any;
2203
+ }>][] & ([Bytes, P.StructInput<{
2204
+ fingerprint: /*elided*/ any;
2205
+ path: /*elided*/ any;
2206
+ }>] & [Bytes & Uint8Array<ArrayBuffer>, {
2207
+ path: number[];
2208
+ fingerprint: number;
2209
+ } & {} & {
2210
+ path: number[] & number[];
2211
+ fingerprint: number;
2212
+ }])[]) | undefined;
2213
+ spTweak?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
1830
2214
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1831
2215
  unknown?: ([P.StructInput<{
1832
2216
  type: number;
@@ -1861,6 +2245,16 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1861
2245
  hashes: /*elided*/ any;
1862
2246
  der: /*elided*/ any;
1863
2247
  }>][] | undefined;
2248
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
2249
+ spV0Info?: P.StructInput<{
2250
+ scanKey: /*elided*/ any;
2251
+ spendKey: /*elided*/ any;
2252
+ }> | undefined;
2253
+ spV0Label?: number | undefined;
2254
+ dnssecProof?: P.StructInput<{
2255
+ name: /*elided*/ any;
2256
+ proof: /*elided*/ any;
2257
+ }> | undefined;
1864
2258
  proprietary?: [Bytes, Bytes][] | undefined;
1865
2259
  } & PSBTUnknownFields & {
1866
2260
  redeemScript?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
@@ -1916,6 +2310,22 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1916
2310
  };
1917
2311
  hashes: P.Bytes[] & (P.Bytes & Uint8Array<ArrayBuffer>)[];
1918
2312
  }])[]) | undefined;
2313
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
2314
+ spV0Info?: ({
2315
+ scanKey: Bytes;
2316
+ spendKey: Bytes;
2317
+ } & {} & {
2318
+ scanKey: Bytes & Uint8Array<ArrayBuffer>;
2319
+ spendKey: Bytes & Uint8Array<ArrayBuffer>;
2320
+ }) | undefined;
2321
+ spV0Label?: number | undefined;
2322
+ dnssecProof?: ({
2323
+ name: P.Bytes;
2324
+ proof: Bytes;
2325
+ } & {} & {
2326
+ name: P.Bytes & Uint8Array<ArrayBuffer>;
2327
+ proof: Bytes & Uint8Array<ArrayBuffer>;
2328
+ }) | undefined;
1919
2329
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
1920
2330
  unknown?: ([P.StructInput<{
1921
2331
  type: number;
@@ -1956,6 +2366,9 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
1956
2366
  inputCount?: number | undefined;
1957
2367
  outputCount?: number | undefined;
1958
2368
  txModifiable?: number | undefined;
2369
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
2370
+ spDleq?: [Bytes, Bytes][] | undefined;
2371
+ genericSignedMessage?: Bytes | undefined;
1959
2372
  version?: number | undefined;
1960
2373
  proprietary?: [Bytes, Bytes][] | undefined;
1961
2374
  } & PSBTUnknownFields & {
@@ -2048,6 +2461,9 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
2048
2461
  inputCount?: number | undefined;
2049
2462
  outputCount?: number | undefined;
2050
2463
  txModifiable?: number | undefined;
2464
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2465
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2466
+ genericSignedMessage?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2051
2467
  version?: number | undefined;
2052
2468
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2053
2469
  unknown?: ([P.StructInput<{
@@ -2113,6 +2529,17 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
2113
2529
  }>][] | undefined;
2114
2530
  tapInternalKey?: Bytes | undefined;
2115
2531
  tapMerkleRoot?: Bytes | undefined;
2532
+ p2cKeyTweak?: [Bytes, Bytes][] | undefined;
2533
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
2534
+ musig2PubNonce?: [TArg<MuSig2Key>, Bytes][] | undefined;
2535
+ musig2PartialSig?: [TArg<MuSig2Key>, Bytes][] | undefined;
2536
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
2537
+ spDleq?: [Bytes, Bytes][] | undefined;
2538
+ spSpendBip32Derivation?: [Bytes, P.StructInput<{
2539
+ fingerprint: /*elided*/ any;
2540
+ path: /*elided*/ any;
2541
+ }>][] | undefined;
2542
+ spTweak?: Bytes | undefined;
2116
2543
  proprietary?: [Bytes, Bytes][] | undefined;
2117
2544
  } & PSBTUnknownFields & {
2118
2545
  nonWitnessUtxo?: ({
@@ -2254,6 +2681,50 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
2254
2681
  }])[]) | undefined;
2255
2682
  tapInternalKey?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2256
2683
  tapMerkleRoot?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2684
+ p2cKeyTweak?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2685
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
2686
+ musig2PubNonce?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
2687
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
2688
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
2689
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2690
+ }) | ({
2691
+ participantPubkey: TArg<Bytes>;
2692
+ aggregatePubkey: TArg<Bytes>;
2693
+ leafHash?: TArg<Bytes | undefined>;
2694
+ } & {
2695
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2696
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2697
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
2698
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2699
+ musig2PartialSig?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
2700
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
2701
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
2702
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2703
+ }) | ({
2704
+ participantPubkey: TArg<Bytes>;
2705
+ aggregatePubkey: TArg<Bytes>;
2706
+ leafHash?: TArg<Bytes | undefined>;
2707
+ } & {
2708
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2709
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
2710
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
2711
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2712
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2713
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2714
+ spSpendBip32Derivation?: ([Bytes, P.StructInput<{
2715
+ fingerprint: /*elided*/ any;
2716
+ path: /*elided*/ any;
2717
+ }>][] & ([Bytes, P.StructInput<{
2718
+ fingerprint: /*elided*/ any;
2719
+ path: /*elided*/ any;
2720
+ }>] & [Bytes & Uint8Array<ArrayBuffer>, {
2721
+ path: number[];
2722
+ fingerprint: number;
2723
+ } & {} & {
2724
+ path: number[] & number[];
2725
+ fingerprint: number;
2726
+ }])[]) | undefined;
2727
+ spTweak?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2257
2728
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2258
2729
  unknown?: ([P.StructInput<{
2259
2730
  type: number;
@@ -2288,6 +2759,16 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
2288
2759
  hashes: /*elided*/ any;
2289
2760
  der: /*elided*/ any;
2290
2761
  }>][] | undefined;
2762
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
2763
+ spV0Info?: P.StructInput<{
2764
+ scanKey: /*elided*/ any;
2765
+ spendKey: /*elided*/ any;
2766
+ }> | undefined;
2767
+ spV0Label?: number | undefined;
2768
+ dnssecProof?: P.StructInput<{
2769
+ name: /*elided*/ any;
2770
+ proof: /*elided*/ any;
2771
+ }> | undefined;
2291
2772
  proprietary?: [Bytes, Bytes][] | undefined;
2292
2773
  } & PSBTUnknownFields & {
2293
2774
  redeemScript?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
@@ -2343,6 +2824,22 @@ export declare const RawPSBTV0: Readonly<P.CoderType<P.StructInput<{
2343
2824
  };
2344
2825
  hashes: P.Bytes[] & (P.Bytes & Uint8Array<ArrayBuffer>)[];
2345
2826
  }])[]) | undefined;
2827
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
2828
+ spV0Info?: ({
2829
+ scanKey: Bytes;
2830
+ spendKey: Bytes;
2831
+ } & {} & {
2832
+ scanKey: Bytes & Uint8Array<ArrayBuffer>;
2833
+ spendKey: Bytes & Uint8Array<ArrayBuffer>;
2834
+ }) | undefined;
2835
+ spV0Label?: number | undefined;
2836
+ dnssecProof?: ({
2837
+ name: P.Bytes;
2838
+ proof: Bytes;
2839
+ } & {} & {
2840
+ name: P.Bytes & Uint8Array<ArrayBuffer>;
2841
+ proof: Bytes & Uint8Array<ArrayBuffer>;
2842
+ }) | undefined;
2346
2843
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2347
2844
  unknown?: ([P.StructInput<{
2348
2845
  type: number;
@@ -2385,6 +2882,9 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2385
2882
  inputCount?: number | undefined;
2386
2883
  outputCount?: number | undefined;
2387
2884
  txModifiable?: number | undefined;
2885
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
2886
+ spDleq?: [Bytes, Bytes][] | undefined;
2887
+ genericSignedMessage?: Bytes | undefined;
2388
2888
  version?: number | undefined;
2389
2889
  proprietary?: [Bytes, Bytes][] | undefined;
2390
2890
  } & PSBTUnknownFields & {
@@ -2477,6 +2977,9 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2477
2977
  inputCount?: number | undefined;
2478
2978
  outputCount?: number | undefined;
2479
2979
  txModifiable?: number | undefined;
2980
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2981
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2982
+ genericSignedMessage?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2480
2983
  version?: number | undefined;
2481
2984
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2482
2985
  unknown?: ([P.StructInput<{
@@ -2542,6 +3045,17 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2542
3045
  }>][] | undefined;
2543
3046
  tapInternalKey?: Bytes | undefined;
2544
3047
  tapMerkleRoot?: Bytes | undefined;
3048
+ p2cKeyTweak?: [Bytes, Bytes][] | undefined;
3049
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
3050
+ musig2PubNonce?: [TArg<MuSig2Key>, Bytes][] | undefined;
3051
+ musig2PartialSig?: [TArg<MuSig2Key>, Bytes][] | undefined;
3052
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
3053
+ spDleq?: [Bytes, Bytes][] | undefined;
3054
+ spSpendBip32Derivation?: [Bytes, P.StructInput<{
3055
+ fingerprint: /*elided*/ any;
3056
+ path: /*elided*/ any;
3057
+ }>][] | undefined;
3058
+ spTweak?: Bytes | undefined;
2545
3059
  proprietary?: [Bytes, Bytes][] | undefined;
2546
3060
  } & PSBTUnknownFields & {
2547
3061
  nonWitnessUtxo?: ({
@@ -2683,6 +3197,50 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2683
3197
  }])[]) | undefined;
2684
3198
  tapInternalKey?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2685
3199
  tapMerkleRoot?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3200
+ p2cKeyTweak?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3201
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
3202
+ musig2PubNonce?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
3203
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
3204
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
3205
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3206
+ }) | ({
3207
+ participantPubkey: TArg<Bytes>;
3208
+ aggregatePubkey: TArg<Bytes>;
3209
+ leafHash?: TArg<Bytes | undefined>;
3210
+ } & {
3211
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3212
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3213
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
3214
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3215
+ musig2PartialSig?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
3216
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
3217
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
3218
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3219
+ }) | ({
3220
+ participantPubkey: TArg<Bytes>;
3221
+ aggregatePubkey: TArg<Bytes>;
3222
+ leafHash?: TArg<Bytes | undefined>;
3223
+ } & {
3224
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3225
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3226
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
3227
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3228
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3229
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3230
+ spSpendBip32Derivation?: ([Bytes, P.StructInput<{
3231
+ fingerprint: /*elided*/ any;
3232
+ path: /*elided*/ any;
3233
+ }>][] & ([Bytes, P.StructInput<{
3234
+ fingerprint: /*elided*/ any;
3235
+ path: /*elided*/ any;
3236
+ }>] & [Bytes & Uint8Array<ArrayBuffer>, {
3237
+ path: number[];
3238
+ fingerprint: number;
3239
+ } & {} & {
3240
+ path: number[] & number[];
3241
+ fingerprint: number;
3242
+ }])[]) | undefined;
3243
+ spTweak?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2686
3244
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2687
3245
  unknown?: ([P.StructInput<{
2688
3246
  type: number;
@@ -2717,6 +3275,16 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2717
3275
  hashes: /*elided*/ any;
2718
3276
  der: /*elided*/ any;
2719
3277
  }>][] | undefined;
3278
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
3279
+ spV0Info?: P.StructInput<{
3280
+ scanKey: /*elided*/ any;
3281
+ spendKey: /*elided*/ any;
3282
+ }> | undefined;
3283
+ spV0Label?: number | undefined;
3284
+ dnssecProof?: P.StructInput<{
3285
+ name: /*elided*/ any;
3286
+ proof: /*elided*/ any;
3287
+ }> | undefined;
2720
3288
  proprietary?: [Bytes, Bytes][] | undefined;
2721
3289
  } & PSBTUnknownFields & {
2722
3290
  redeemScript?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
@@ -2772,6 +3340,22 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2772
3340
  };
2773
3341
  hashes: P.Bytes[] & (P.Bytes & Uint8Array<ArrayBuffer>)[];
2774
3342
  }])[]) | undefined;
3343
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
3344
+ spV0Info?: ({
3345
+ scanKey: Bytes;
3346
+ spendKey: Bytes;
3347
+ } & {} & {
3348
+ scanKey: Bytes & Uint8Array<ArrayBuffer>;
3349
+ spendKey: Bytes & Uint8Array<ArrayBuffer>;
3350
+ }) | undefined;
3351
+ spV0Label?: number | undefined;
3352
+ dnssecProof?: ({
3353
+ name: P.Bytes;
3354
+ proof: Bytes;
3355
+ } & {} & {
3356
+ name: P.Bytes & Uint8Array<ArrayBuffer>;
3357
+ proof: Bytes & Uint8Array<ArrayBuffer>;
3358
+ }) | undefined;
2775
3359
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2776
3360
  unknown?: ([P.StructInput<{
2777
3361
  type: number;
@@ -2812,6 +3396,9 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2812
3396
  inputCount?: number | undefined;
2813
3397
  outputCount?: number | undefined;
2814
3398
  txModifiable?: number | undefined;
3399
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
3400
+ spDleq?: [Bytes, Bytes][] | undefined;
3401
+ genericSignedMessage?: Bytes | undefined;
2815
3402
  version?: number | undefined;
2816
3403
  proprietary?: [Bytes, Bytes][] | undefined;
2817
3404
  } & PSBTUnknownFields & {
@@ -2904,6 +3491,9 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2904
3491
  inputCount?: number | undefined;
2905
3492
  outputCount?: number | undefined;
2906
3493
  txModifiable?: number | undefined;
3494
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3495
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3496
+ genericSignedMessage?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
2907
3497
  version?: number | undefined;
2908
3498
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
2909
3499
  unknown?: ([P.StructInput<{
@@ -2969,6 +3559,17 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
2969
3559
  }>][] | undefined;
2970
3560
  tapInternalKey?: Bytes | undefined;
2971
3561
  tapMerkleRoot?: Bytes | undefined;
3562
+ p2cKeyTweak?: [Bytes, Bytes][] | undefined;
3563
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
3564
+ musig2PubNonce?: [TArg<MuSig2Key>, Bytes][] | undefined;
3565
+ musig2PartialSig?: [TArg<MuSig2Key>, Bytes][] | undefined;
3566
+ spEcdhShare?: [Bytes, Bytes][] | undefined;
3567
+ spDleq?: [Bytes, Bytes][] | undefined;
3568
+ spSpendBip32Derivation?: [Bytes, P.StructInput<{
3569
+ fingerprint: /*elided*/ any;
3570
+ path: /*elided*/ any;
3571
+ }>][] | undefined;
3572
+ spTweak?: Bytes | undefined;
2972
3573
  proprietary?: [Bytes, Bytes][] | undefined;
2973
3574
  } & PSBTUnknownFields & {
2974
3575
  nonWitnessUtxo?: ({
@@ -3110,6 +3711,50 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
3110
3711
  }])[]) | undefined;
3111
3712
  tapInternalKey?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3112
3713
  tapMerkleRoot?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3714
+ p2cKeyTweak?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3715
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
3716
+ musig2PubNonce?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
3717
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
3718
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
3719
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3720
+ }) | ({
3721
+ participantPubkey: TArg<Bytes>;
3722
+ aggregatePubkey: TArg<Bytes>;
3723
+ leafHash?: TArg<Bytes | undefined>;
3724
+ } & {
3725
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3726
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3727
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
3728
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3729
+ musig2PartialSig?: ([TArg<MuSig2Key>, Bytes][] & ([TArg<MuSig2Key>, Bytes] & [(MuSig2Key & {
3730
+ participantPubkey: Bytes & Uint8Array<ArrayBuffer>;
3731
+ aggregatePubkey: Bytes & Uint8Array<ArrayBuffer>;
3732
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3733
+ }) | ({
3734
+ participantPubkey: TArg<Bytes>;
3735
+ aggregatePubkey: TArg<Bytes>;
3736
+ leafHash?: TArg<Bytes | undefined>;
3737
+ } & {
3738
+ participantPubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3739
+ aggregatePubkey: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>);
3740
+ leafHash?: (Bytes & Uint8Array<ArrayBuffer>) | (Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>) | undefined;
3741
+ }), Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3742
+ spEcdhShare?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3743
+ spDleq?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3744
+ spSpendBip32Derivation?: ([Bytes, P.StructInput<{
3745
+ fingerprint: /*elided*/ any;
3746
+ path: /*elided*/ any;
3747
+ }>][] & ([Bytes, P.StructInput<{
3748
+ fingerprint: /*elided*/ any;
3749
+ path: /*elided*/ any;
3750
+ }>] & [Bytes & Uint8Array<ArrayBuffer>, {
3751
+ path: number[];
3752
+ fingerprint: number;
3753
+ } & {} & {
3754
+ path: number[] & number[];
3755
+ fingerprint: number;
3756
+ }])[]) | undefined;
3757
+ spTweak?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
3113
3758
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3114
3759
  unknown?: ([P.StructInput<{
3115
3760
  type: number;
@@ -3144,6 +3789,16 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
3144
3789
  hashes: /*elided*/ any;
3145
3790
  der: /*elided*/ any;
3146
3791
  }>][] | undefined;
3792
+ musig2ParticipantPubkeys?: [Bytes, Bytes[]][] | undefined;
3793
+ spV0Info?: P.StructInput<{
3794
+ scanKey: /*elided*/ any;
3795
+ spendKey: /*elided*/ any;
3796
+ }> | undefined;
3797
+ spV0Label?: number | undefined;
3798
+ dnssecProof?: P.StructInput<{
3799
+ name: /*elided*/ any;
3800
+ proof: /*elided*/ any;
3801
+ }> | undefined;
3147
3802
  proprietary?: [Bytes, Bytes][] | undefined;
3148
3803
  } & PSBTUnknownFields & {
3149
3804
  redeemScript?: (Bytes & Uint8Array<ArrayBuffer>) | undefined;
@@ -3199,6 +3854,22 @@ export declare const RawPSBTV2: Readonly<P.CoderType<P.StructInput<{
3199
3854
  };
3200
3855
  hashes: P.Bytes[] & (P.Bytes & Uint8Array<ArrayBuffer>)[];
3201
3856
  }])[]) | undefined;
3857
+ musig2ParticipantPubkeys?: ([Bytes, Bytes[]][] & ([Bytes, Bytes[]] & [Bytes & Uint8Array<ArrayBuffer>, Bytes[] & (Bytes & Uint8Array<ArrayBuffer>)[]])[]) | undefined;
3858
+ spV0Info?: ({
3859
+ scanKey: Bytes;
3860
+ spendKey: Bytes;
3861
+ } & {} & {
3862
+ scanKey: Bytes & Uint8Array<ArrayBuffer>;
3863
+ spendKey: Bytes & Uint8Array<ArrayBuffer>;
3864
+ }) | undefined;
3865
+ spV0Label?: number | undefined;
3866
+ dnssecProof?: ({
3867
+ name: P.Bytes;
3868
+ proof: Bytes;
3869
+ } & {} & {
3870
+ name: P.Bytes & Uint8Array<ArrayBuffer>;
3871
+ proof: Bytes & Uint8Array<ArrayBuffer>;
3872
+ }) | undefined;
3202
3873
  proprietary?: ([Bytes, Bytes][] & ([Bytes, Bytes] & [Bytes & Uint8Array<ArrayBuffer>, Bytes & Uint8Array<ArrayBuffer>])[]) | undefined;
3203
3874
  unknown?: ([P.StructInput<{
3204
3875
  type: number;