| | | 1 | | namespace NLightning.Domain.Channels.ValueObjects; |
| | | 2 | | |
| | | 3 | | using Bitcoin.ValueObjects; |
| | | 4 | | using Crypto.ValueObjects; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Information needed by the signer for a specific channel |
| | | 8 | | /// </summary> |
| | | 9 | | public record struct ChannelSigningInfo |
| | | 10 | | { |
| | 208 | 11 | | public TxId FundingTxId { get; init; } |
| | 340 | 12 | | public ushort FundingOutputIndex { get; init; } |
| | 208 | 13 | | public ulong FundingSatoshis { get; init; } |
| | 208 | 14 | | public CompactPubKey LocalFundingPubKey { get; init; } |
| | 276 | 15 | | public CompactPubKey RemoteFundingPubKey { get; init; } |
| | 140 | 16 | | public uint ChannelKeyIndex { get; init; } // For deterministic key derivation |
| | | 17 | | |
| | | 18 | | public ChannelSigningInfo(TxId fundingTxId, ushort fundingOutputIndex, ulong fundingSatoshis, |
| | | 19 | | CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey, |
| | | 20 | | uint channelKeyIndex) |
| | | 21 | | { |
| | 76 | 22 | | FundingTxId = fundingTxId; |
| | 76 | 23 | | FundingOutputIndex = fundingOutputIndex; |
| | 76 | 24 | | FundingSatoshis = fundingSatoshis; |
| | 76 | 25 | | LocalFundingPubKey = localFundingPubKey; |
| | 76 | 26 | | RemoteFundingPubKey = remoteFundingPubKey; |
| | 76 | 27 | | ChannelKeyIndex = channelKeyIndex; |
| | 76 | 28 | | } |
| | | 29 | | } |