| | 1 | | using NBitcoin; |
| | 2 | | using NLightning.Domain.Money; |
| | 3 | |
|
| | 4 | | namespace NLightning.Tests.Utils.Vectors; |
| | 5 | |
|
| | 6 | | public static class Bolt3AppendixBVectors |
| | 7 | | { |
| 12 | 8 | | public static readonly uint256 InputTxId = new("fd2105607605d2302994ffea703b09f66b6351816ee737a93e42a841ea20bbad"); |
| | 9 | |
|
| 12 | 10 | | public static readonly Transaction InputTx = Transaction.Parse( |
| 12 | 11 | | "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff03510101ffffffff0100f2052a010 |
| 12 | 12 | | Network.Main); |
| | 13 | |
|
| | 14 | | public const int InputIndex = 0; |
| | 15 | |
|
| 12 | 16 | | public static readonly Key InputSigningPrivKey = |
| 12 | 17 | | new(Convert.FromHexString("6bd078650fcee8444e4e09825227b801a1ca928debb750eb36e6d56124bb20e8")); |
| | 18 | |
|
| 12 | 19 | | public static readonly PubKey LocalPubKey = |
| 12 | 20 | | new("023da092f6980e58d2c037173180e9a465476026ee50f96695963e8efe436f54eb"); |
| | 21 | |
|
| 12 | 22 | | public static readonly PubKey RemotePubKey = |
| 12 | 23 | | new("030e9f7b623d2ccc7c9bd44d66d5ce21ce504c0acf6385a132cec6d3c39fa711c1"); |
| | 24 | |
|
| 12 | 25 | | public static readonly LightningMoney FundingSatoshis = 10_000_000_000UL; |
| | 26 | |
|
| 12 | 27 | | public static readonly Script |
| 12 | 28 | | ChangeScript = Script.FromHex("00143ca33c2e4446f4a305f23c80df8ad1afdcf652f9"); // P2WPKH |
| | 29 | |
|
| 12 | 30 | | public static readonly LightningMoney ExpectedChangeSatoshis = 4_989_986_080_000UL; |
| | 31 | |
|
| 12 | 32 | | public static readonly uint256 ExpectedTxId = |
| 12 | 33 | | new("8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be"); |
| | 34 | |
|
| 12 | 35 | | public static readonly Transaction ExpectedTx = Transaction.Parse( |
| 12 | 36 | | "0200000001adbb20ea41a8423ea937e76e8151636bf6093b70eaff942930d20576600521fd000000006b48304502210090587b6201e166a |
| 12 | 37 | | Network.Main); |
| | 38 | |
|
| 12 | 39 | | public static readonly WitScript InputWitScript = |
| 12 | 40 | | new( |
| 12 | 41 | | "5221023da092f6980e58d2c037173180e9a465476026ee50f96695963e8efe436f54eb21030e9f7b623d2ccc7c9bd44d66d5ce21ce5 |
| | 42 | | } |