mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
485cabb25e
In general, a validating signer may be under a different operational environment than the node, and therefore may have a different source of on-chain data. The signer may therefore temporarily disagree on whether a funding or splice transaction is locked (buried). We would like to ensure agreement between the signer and the node on how to progress a channel's state. The following message are added to provide a solution: - `check_outpoint(outpoint) -> bool` - check if the signer agrees that a funding candidate outpoint is buried - `lock_outpoint(outpoint)` - change the funding/splice state to locked Link: https://github.com/ElementsProject/lightning/issues/6722 Suggested-by: @devrandom Co-Developed-by: Ken Sedgwick <ken@bonsai.com> Changelog-Added: hsmd protocol: Added hsmd_check_outpoint and hsmd_lock_outpoint Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
17 lines
476 B
C
17 lines
476 B
C
#ifndef LIGHTNING_HSMD_PERMISSIONS_H
|
|
#define LIGHTNING_HSMD_PERMISSIONS_H
|
|
#include "config.h"
|
|
|
|
#define HSM_PERM_ECDH 1
|
|
#define HSM_PERM_SIGN_GOSSIP 2
|
|
#define HSM_PERM_SIGN_ONCHAIN_TX 4
|
|
#define HSM_PERM_COMMITMENT_POINT 8
|
|
#define HSM_PERM_SIGN_REMOTE_TX 16
|
|
#define HSM_PERM_SIGN_CLOSING_TX 32
|
|
#define HSM_PERM_SIGN_WILL_FUND_OFFER 64
|
|
#define HSM_PERM_SIGN_SPLICE_TX 128
|
|
#define HSM_PERM_LOCK_OUTPOINT 256
|
|
|
|
#define HSM_PERM_MASTER 1024
|
|
#endif /* LIGHTNING_HSMD_PERMISSIONS_H */
|