walletrpc: Add Taproot witness types to rpc.

This commit is contained in:
ziggie committed 2024-01-29 15:09:22 +00:00
1 parent b76d3e64d3
commit 4f77758419
4 files changed
+358 -145

No files matched your search

+85
View File
@@ -976,6 +976,91 @@ enum WitnessType {
to an output which is under complete control of the backing wallet.
*/
TAPROOT_PUB_KEY_SPEND = 22;
/*
A witness type that allows us to spend our settled local commitment after a
CSV delay when we force close the channel.
*/
TAPROOT_LOCAL_COMMIT_SPEND = 23;
/*
A witness type that allows us to spend our settled local commitment after
a CSV delay when the remote party has force closed the channel.
*/
TAPROOT_REMOTE_COMMIT_SPEND = 24;
/*
A witness type that we'll use for spending our own anchor output.
*/
TAPROOT_ANCHOR_SWEEP_SPEND = 25;
/*
A witness that allows us to timeout an HTLC we offered to the remote party
on our commitment transaction. We use this when we need to go on chain to
time out an HTLC.
*/
TAPROOT_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL = 26;
/*
A witness type that allows us to sweep an HTLC we accepted on our commitment
transaction after we go to the second level on chain.
*/
TAPROOT_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL = 27;
/*
A witness that allows us to sweep an HTLC on the revoked transaction of the
remote party that goes to the second level.
*/
TAPROOT_HTLC_SECOND_LEVEL_REVOKE = 28;
/*
A witness that allows us to sweep an HTLC sent to us by the remote party
in the event that they broadcast a revoked state.
*/
TAPROOT_HTLC_ACCEPTED_REVOKE = 29;
/*
A witness that allows us to sweep an HTLC we offered to the remote party if
they broadcast a revoked commitment.
*/
TAPROOT_HTLC_OFFERED_REVOKE = 30;
/*
A witness that allows us to sweep an HTLC we offered to the remote party
that lies on the commitment transaction for the remote party. We can spend
this output after the absolute CLTV timeout of the HTLC as passed.
*/
TAPROOT_HTLC_OFFERED_REMOTE_TIMEOUT = 31;
/*
A witness type that allows us to sign the second level HTLC timeout
transaction when spending from an HTLC residing on our local commitment
transaction.
This is used by the sweeper to re-sign inputs if it needs to aggregate
several second level HTLCs.
*/
TAPROOT_HTLC_LOCAL_OFFERED_TIMEOUT = 32;
/*
A witness that allows us to sweep an HTLC that was offered to us by the
remote party for a taproot channels. We use this witness in the case that
the remote party goes to chain, and we know the pre-image to the HTLC. We
can sweep this without any additional timeout.
*/
TAPROOT_HTLC_ACCEPTED_REMOTE_SUCCESS = 33;
/*
A witness type that allows us to sweep the HTLC offered to us on our local
commitment transaction. We'll use this when we need to go on chain to sweep
the HTLC. In this case, this is the second level HTLC success transaction.
*/
TAPROOT_HTLC_ACCEPTED_LOCAL_SUCCESS = 34;
/*
A witness that allows us to sweep the settled output of a malicious
counterparty's who broadcasts a revoked taproot commitment transaction.
*/
TAPROOT_COMMITMENT_REVOKE = 35;
}
message PendingSweep {