| | 1 | | namespace NLightning.Tests.Utils.Vectors; |
| | 2 | |
|
| | 3 | | public static class Bolt3AppendixDVectors |
| | 4 | | { |
| 4 | 5 | | public static readonly byte[] Seed0FinalNode = |
| 4 | 6 | | Convert.FromHexString("0000000000000000000000000000000000000000000000000000000000000000"); |
| | 7 | |
|
| 4 | 8 | | public static readonly byte[] SeedFfFinalNode = |
| 4 | 9 | | Convert.FromHexString("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"); |
| | 10 | |
|
| 4 | 11 | | public static readonly byte[] SeedFfAlternateBits1 = |
| 4 | 12 | | Convert.FromHexString("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"); |
| | 13 | |
|
| 4 | 14 | | public static readonly byte[] SeedFfAlternateBits2 = |
| 4 | 15 | | Convert.FromHexString("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"); |
| | 16 | |
|
| 4 | 17 | | public static readonly byte[] Seed01LastNonTrivialNode = |
| 4 | 18 | | Convert.FromHexString("0101010101010101010101010101010101010101010101010101010101010101"); |
| | 19 | |
|
| | 20 | | public const ulong I0FinalNode = 281474976710655; |
| | 21 | | public const ulong IFfFinalNode = 281474976710655; |
| | 22 | | public const ulong IFfAlternateBits1 = 0xaaaaaaaaaaa; |
| | 23 | | public const ulong IFfAlternateBits2 = 0x555555555555; |
| | 24 | | public const ulong I01LastNonTrivialNode = 1; |
| | 25 | |
|
| 4 | 26 | | public static readonly byte[] ExpectedOutput0FinalNode = |
| 4 | 27 | | Convert.FromHexString("02a40c85b6f28da08dfdbe0926c53fab2de6d28c10301f8f7c4073d5e42e3148"); |
| | 28 | |
|
| 4 | 29 | | public static readonly byte[] ExpectedOutputFfFinalNode = |
| 4 | 30 | | Convert.FromHexString("7cc854b54e3e0dcdb010d7a3fee464a9687be6e8db3be6854c475621e007a5dc"); |
| | 31 | |
|
| 4 | 32 | | public static readonly byte[] ExpectedOutputFfAlternateBits1 = |
| 4 | 33 | | Convert.FromHexString("56f4008fb007ca9acf0e15b054d5c9fd12ee06cea347914ddbaed70d1c13a528"); |
| | 34 | |
|
| 4 | 35 | | public static readonly byte[] ExpectedOutputFfAlternateBits2 = |
| 4 | 36 | | Convert.FromHexString("9015daaeb06dba4ccc05b91b2f73bd54405f2be9f217fbacd3c5ac2e62327d31"); |
| | 37 | |
|
| 4 | 38 | | public static readonly byte[] ExpectedOutput01LastNonTrivialNode = |
| 4 | 39 | | Convert.FromHexString("915c75942a26bb3a433a8ce2cb0427c29ec6c1775cfc78328b57f6ba7bfeaa9c"); |
| | 40 | |
|
| | 41 | | public const ulong StorageIndexMax = 0xFFFFFFFFFFFFUL; |
| | 42 | |
|
| 4 | 43 | | public static readonly byte[] StorageCorrectSeed = |
| 4 | 44 | | Convert.FromHexString("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"); |
| | 45 | |
|
| 4 | 46 | | public static readonly byte[] StorageIncorrectSeed = |
| 4 | 47 | | Convert.FromHexString("0000000000000000000000000000000000000000000000000000000000000000"); |
| | 48 | |
|
| 4 | 49 | | public static readonly byte[] StorageExpectedSecret0 = |
| 4 | 50 | | Convert.FromHexString("7cc854b54e3e0dcdb010d7a3fee464a9687be6e8db3be6854c475621e007a5dc"); |
| | 51 | |
|
| 4 | 52 | | public static readonly byte[] StorageExpectedSecret1 = |
| 4 | 53 | | Convert.FromHexString("c7518c8ae4660ed02894df8976fa1a3659c1a8b4b5bec0c4b872abeba4cb8964"); |
| | 54 | |
|
| 4 | 55 | | public static readonly byte[] StorageExpectedSecret2 = |
| 4 | 56 | | Convert.FromHexString("2273e227a5b7449b6e70f1fb4652864038b1cbf9cd7c043a7d6456b7fc275ad8"); |
| | 57 | |
|
| 4 | 58 | | public static readonly byte[] StorageExpectedSecret3 = |
| 4 | 59 | | Convert.FromHexString("27cddaa5624534cb6cb9d7da077cf2b22ab21e9b506fd4998a51d54502e99116"); |
| | 60 | |
|
| 4 | 61 | | public static readonly byte[] StorageExpectedSecret4 = |
| 4 | 62 | | Convert.FromHexString("c65716add7aa98ba7acb236352d665cab17345fe45b55fb879ff80e6bd0c41dd"); |
| | 63 | |
|
| 4 | 64 | | public static readonly byte[] StorageExpectedSecret5 = |
| 4 | 65 | | Convert.FromHexString("969660042a28f32d9be17344e09374b379962d03db1574df5a8a5a47e19ce3f2"); |
| | 66 | |
|
| 4 | 67 | | public static readonly byte[] StorageExpectedSecret6 = |
| 4 | 68 | | Convert.FromHexString("a5a64476122ca0925fb344bdc1854c1c0a59fc614298e50a33e331980a220f32"); |
| | 69 | |
|
| 4 | 70 | | public static readonly byte[] StorageExpectedSecret7 = |
| 4 | 71 | | Convert.FromHexString("05cde6323d949933f7f7b78776bcc1ea6d9b31447732e3802e1f7ac44b650e17"); |
| | 72 | |
|
| 4 | 73 | | public static readonly byte[] StorageExpectedSecret8 = |
| 4 | 74 | | Convert.FromHexString("02a40c85b6f28da08dfdbe0926c53fab2de6d28c10301f8f7c4073d5e42e3148"); |
| | 75 | |
|
| 4 | 76 | | public static readonly byte[] StorageExpectedSecret9 = |
| 4 | 77 | | Convert.FromHexString("dddc3a8d14fddf2b68fa8c7fbad2748274937479dd0f8930d5ebb4ab6bd866a3"); |
| | 78 | |
|
| 4 | 79 | | public static readonly byte[] StorageExpectedSecret10 = |
| 4 | 80 | | Convert.FromHexString("c51a18b13e8527e579ec56365482c62f180b7d5760b46e9477dae59e87ed423a"); |
| | 81 | |
|
| 4 | 82 | | public static readonly byte[] StorageExpectedSecret11 = |
| 4 | 83 | | Convert.FromHexString("ba65d7b0ef55a3ba300d4e87af29868f394f8f138d78a7011669c79b37b936f4"); |
| | 84 | |
|
| 4 | 85 | | public static readonly byte[] StorageExpectedSecret12 = |
| 4 | 86 | | Convert.FromHexString("631373ad5f9ef654bb3dade742d09504c567edd24320d2fcd68e3cc47e2ff6a6"); |
| | 87 | |
|
| 4 | 88 | | public static readonly byte[] StorageExpectedSecret13 = |
| 4 | 89 | | Convert.FromHexString("b7e76a83668bde38b373970155c868a653304308f9896692f904a23731224bb1"); |
| | 90 | |
|
| 4 | 91 | | public static readonly byte[] StorageExpectedSecret14 = |
| 4 | 92 | | Convert.FromHexString("e7971de736e01da8ed58b94c2fc216cb1dca9e326f3a96e7194fe8ea8af6c0a3"); |
| | 93 | |
|
| 4 | 94 | | public static readonly byte[] StorageExpectedSecret15 = |
| 4 | 95 | | Convert.FromHexString("a7efbc61aac46d34f77778bac22c8a20c6a46ca460addc49009bda875ec88fa4"); |
| | 96 | | } |