| | 1 | | using NBitcoin; |
| | 2 | | using NBitcoin.Crypto; |
| | 3 | | using NLightning.Domain.Enums; |
| | 4 | | using NLightning.Domain.Money; |
| | 5 | |
|
| | 6 | | namespace NLightning.Tests.Utils.Vectors; |
| | 7 | |
|
| | 8 | | public static class Bolt3AppendixFVectors |
| | 9 | | { |
| 0 | 10 | | public static readonly LightningMoney Tx0ToLocalMsat = new(7_000_000, LightningMoneyUnit.Satoshi); |
| 0 | 11 | | public static readonly LightningMoney Tx1ToLocalMsat = new(10_000_000, LightningMoneyUnit.Satoshi); |
| 0 | 12 | | public static readonly LightningMoney Tx2ToLocalMsat = new(6_988_000, LightningMoneyUnit.Satoshi); |
| 0 | 13 | | public static readonly LightningMoney Tx8ToLocalMsat = new(6_987_999_999, LightningMoneyUnit.MilliSatoshi); |
| | 14 | |
|
| 0 | 15 | | public static readonly Transaction ExpectedCommitTx0 = Transaction.Parse( |
| 0 | 16 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80044a01000000000 |
| 0 | 17 | | Network.Main); |
| | 18 | |
|
| 0 | 19 | | public static readonly Transaction ExpectedCommitTx1 = Transaction.Parse( |
| 0 | 20 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80024a01000000000 |
| 0 | 21 | | Network.Main); |
| | 22 | |
|
| 0 | 23 | | public static readonly Transaction ExpectedCommitTx2 = Transaction.Parse( |
| 0 | 24 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80094a01000000000 |
| 0 | 25 | | Network.Main); |
| | 26 | |
|
| 0 | 27 | | public static readonly Transaction ExpectedCommitTx3 = Transaction.Parse( |
| 0 | 28 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80084a01000000000 |
| 0 | 29 | | Network.Main); |
| | 30 | |
|
| 0 | 31 | | public static readonly Transaction ExpectedCommitTx4 = Transaction.Parse( |
| 0 | 32 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80064a01000000000 |
| 0 | 33 | | Network.Main); |
| | 34 | |
|
| 0 | 35 | | public static readonly Transaction ExpectedCommitTx5 = Transaction.Parse( |
| 0 | 36 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80054a01000000000 |
| 0 | 37 | | Network.Main); |
| | 38 | |
|
| 0 | 39 | | public static readonly Transaction ExpectedCommitTx6 = Transaction.Parse( |
| 0 | 40 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80044a01000000000 |
| 0 | 41 | | Network.Main); |
| | 42 | |
|
| 0 | 43 | | public static readonly Transaction ExpectedCommitTx7 = Transaction.Parse( |
| 0 | 44 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80024a01000000000 |
| 0 | 45 | | Network.Main); |
| | 46 | |
|
| 0 | 47 | | public static readonly Transaction ExpectedCommitTx8 = Transaction.Parse( |
| 0 | 48 | | "02000000000101bef67e4e2fb9ddeeb3461973cd4c62abb35050b1add772995b820b584a488489000000000038b02b80074a01000000000 |
| 0 | 49 | | Network.Main); |
| | 50 | |
|
| 0 | 51 | | public static readonly ECDSASignature NodeBSignature0 = |
| 0 | 52 | | new(Convert.FromHexString( |
| 0 | 53 | | "3045022100f89034eba16b2be0e5581f750a0a6309192b75cce0f202f0ee2b4ec0cc394850022076c65dc507fe42276152b7a3d |
| | 54 | |
|
| 0 | 55 | | public static readonly ECDSASignature NodeBSignature1 = |
| 0 | 56 | | new(Convert.FromHexString( |
| 0 | 57 | | "30440220655bf909fb6fa81d086f1336ac72c97906dce29d1b166e305c99152d810e26e1022051f577faa46412c46707aaac46b |
| | 58 | |
|
| 0 | 59 | | public static readonly ECDSASignature NodeBSignature2 = |
| 0 | 60 | | new(Convert.FromHexString( |
| 0 | 61 | | "3045022100e0106830467a558c07544a3de7715610c1147062e7d091deeebe8b5c661cda9402202ad049c1a6d04834317a78483 |
| | 62 | |
|
| 0 | 63 | | public static readonly ECDSASignature NodeBSignature3 = |
| 0 | 64 | | new(Convert.FromHexString( |
| 0 | 65 | | "3044022025d97466c8049e955a5afce28e322f4b34d2561118e52332fb400f9b908cc0a402205dc6fba3a0d67ee142c428c5355 |
| | 66 | |
|
| 0 | 67 | | public static readonly ECDSASignature NodeBSignature4 = |
| 0 | 68 | | new(Convert.FromHexString( |
| 0 | 69 | | "3044022040f63a16148cf35c8d3d41827f5ae7f7c3746885bb64d4d1b895892a83812b3e02202fcf95c2bf02c466163b3fa3ced |
| | 70 | |
|
| 0 | 71 | | public static readonly ECDSASignature NodeBSignature5 = |
| 0 | 72 | | new(Convert.FromHexString( |
| 0 | 73 | | "3045022100ad6c71569856b2d7ff42e838b4abe74a713426b37f22fa667a195a4c88908c6902202b37272b02a42dc6d9f4f82ca |
| | 74 | |
|
| 0 | 75 | | public static readonly ECDSASignature NodeBSignature6 = |
| 0 | 76 | | new(Convert.FromHexString( |
| 0 | 77 | | "3045022100e784a66b1588575801e237d35e510fd92a81ae3a4a2a1b90c031ad803d07b3f3022021bc5f16501f167607d63b681 |
| | 78 | |
|
| 0 | 79 | | public static readonly ECDSASignature NodeBSignature7 = |
| 0 | 80 | | new(Convert.FromHexString( |
| 0 | 81 | | "30450221008fd5dbff02e4b59020d4cd23a3c30d3e287065fda75a0a09b402980adf68ccda022001e0b8b620cd915ddff11f1de |
| | 82 | |
|
| 0 | 83 | | public static readonly ECDSASignature NodeBSignature8 = |
| 0 | 84 | | new(Convert.FromHexString( |
| 0 | 85 | | "3044022027b38dfb654c34032ffb70bb43022981652fce923cbbe3cbe7394e2ade8b34230220584195b78da6e25c2e8da6b4308 |
| | 86 | | } |