| | 1 | | namespace NLightning.Domain.Channels.ValueObjects; |
| | 2 | |
|
| | 3 | | using Crypto.ValueObjects; |
| | 4 | |
|
| | 5 | | public record struct ChannelBasepoints |
| | 6 | | { |
| 68 | 7 | | public CompactPubKey FundingPubKey { get; init; } |
| 68 | 8 | | public CompactPubKey RevocationBasepoint { get; init; } |
| 68 | 9 | | public CompactPubKey PaymentBasepoint { get; init; } |
| 68 | 10 | | public CompactPubKey DelayedPaymentBasepoint { get; init; } |
| 68 | 11 | | public CompactPubKey HtlcBasepoint { get; init; } |
| | 12 | |
|
| | 13 | | public ChannelBasepoints(CompactPubKey fundingPubKey, CompactPubKey revocationBasepoint, |
| | 14 | | CompactPubKey paymentBasepoint, CompactPubKey delayedPaymentBasepoint, |
| | 15 | | CompactPubKey htlcBasepoint) |
| | 16 | | { |
| 68 | 17 | | FundingPubKey = fundingPubKey; |
| 68 | 18 | | RevocationBasepoint = revocationBasepoint; |
| 68 | 19 | | PaymentBasepoint = paymentBasepoint; |
| 68 | 20 | | DelayedPaymentBasepoint = delayedPaymentBasepoint; |
| 68 | 21 | | HtlcBasepoint = htlcBasepoint; |
| 68 | 22 | | } |
| | 23 | | } |