@@ -86,6 +86,67 @@ export enum WitnessType {
8686 * transaction.
8787 */
8888 COMMITMENT_ANCHOR = 'COMMITMENT_ANCHOR' ,
89+ /**
90+ * COMMITMENT_NO_DELAY_TWEAKLESS - A witness type that is similar to the COMMITMENT_NO_DELAY type,
91+ * but it omits the tweak that randomizes the key we need to
92+ * spend with a channel peer supplied set of randomness.
93+ */
94+ COMMITMENT_NO_DELAY_TWEAKLESS = 'COMMITMENT_NO_DELAY_TWEAKLESS' ,
95+ /**
96+ * COMMITMENT_TO_REMOTE_CONFIRMED - A witness type that allows us to spend our output on the counterparty's
97+ * commitment transaction after a confirmation.
98+ */
99+ COMMITMENT_TO_REMOTE_CONFIRMED = 'COMMITMENT_TO_REMOTE_CONFIRMED' ,
100+ /**
101+ * HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED - A witness type that allows us to sweep an HTLC output that we extended
102+ * to a party, but was never fulfilled. This _is_ the HTLC output directly
103+ * on our commitment transaction, and the input to the second-level HTLC
104+ * timeout transaction. It can only be spent after CLTV expiry, and
105+ * commitment confirmation.
106+ */
107+ HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED = 'HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED' ,
108+ /**
109+ * HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED - A witness type that allows us to sweep an HTLC output that was offered
110+ * to us, and for which we have a payment preimage. This _is_ the HTLC
111+ * output directly on our commitment transaction, and the input to the
112+ * second-level HTLC success transaction. It can only be spent after the
113+ * commitment has confirmed.
114+ */
115+ HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED = 'HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED' ,
116+ /**
117+ * LEASE_COMMITMENT_TIME_LOCK - A witness type that allows us to spend our output on our local
118+ * commitment transaction after a relative and absolute lock-time lockout as
119+ * part of the script enforced lease commitment type.
120+ */
121+ LEASE_COMMITMENT_TIME_LOCK = 'LEASE_COMMITMENT_TIME_LOCK' ,
122+ /**
123+ * LEASE_COMMITMENT_TO_REMOTE_CONFIRMED - A witness type that allows us to spend our output on the counterparty's
124+ * commitment transaction after a confirmation and absolute locktime as part
125+ * of the script enforced lease commitment type.
126+ */
127+ LEASE_COMMITMENT_TO_REMOTE_CONFIRMED = 'LEASE_COMMITMENT_TO_REMOTE_CONFIRMED' ,
128+ /**
129+ * LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL - A witness type that allows us to sweep an HTLC output that we extended
130+ * to a party, but was never fulfilled. This HTLC output isn't directly on
131+ * the commitment transaction, but is the result of a confirmed second-level
132+ * HTLC transaction. As a result, we can only spend this after a CSV delay
133+ * and CLTV locktime as part of the script enforced lease commitment type.
134+ */
135+ LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL = 'LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL' ,
136+ /**
137+ * LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL - A witness type that allows us to sweep an HTLC output that was offered
138+ * to us, and for which we have a payment preimage. This HTLC output isn't
139+ * directly on our commitment transaction, but is the result of confirmed
140+ * second-level HTLC transaction. As a result, we can only spend this after
141+ * a CSV delay and CLTV locktime as part of the script enforced lease
142+ * commitment type.
143+ */
144+ LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL = 'LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL' ,
145+ /**
146+ * TAPROOT_PUB_KEY_SPEND - A witness type that allows us to spend a regular p2tr output that's sent
147+ * to an output which is under complete control of the backing wallet.
148+ */
149+ TAPROOT_PUB_KEY_SPEND = 'TAPROOT_PUB_KEY_SPEND' ,
89150 UNRECOGNIZED = 'UNRECOGNIZED'
90151}
91152
0 commit comments