### SHA-1 Hashing Example Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-1 hashing for the message 'test'. No specific setup is required. ```plaintext message = "test": k = 017E167EAB1850A3B38EE66BFE2270F2F6BFDAC5E2D227D47B20E75F0719161E 6C74E9F23088F0C58B1E63BC6F185AD2EF4EAE6 r = 049F54E7C10D2732B4638473053782C6919218BBEFCEC8B51640FC193E832291 F05FA12371E9B448417B3290193F08EE9319195 s = 0499E267DEC84E02F6F108B10E82172C414F15B1B7364BE8BFD66ADC0C5DE23F EE3DF0D811134C25AFE0E05A6672F98889F28F1 ``` -------------------------------- ### Install NBitcoin.TestFramework Package Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.TestFramework/README.md Use this command to install the NBitcoin.TestFramework NuGet package into your project. ```powershell Install-Package NBitcoin.TestFramework ``` -------------------------------- ### SHA-256 Hashing Example Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-256 hashing for the message 'test'. No specific setup is required. ```plaintext message = "test": k = 06EBA3D58D0E0DFC406D67FC72EF0C943624CF40019D1E48C3B54CCAB0594AFD 5DEE30AEBAA22E693DBCFECAD1A85D774313DAD r = 0BB27755B991D6D31757BCBF68CB01225A38E1CFA20F775E861055DD108ED7EA 455E4B96B2F6F7CD6C6EC2B3C70C3EDDEB9743B s = 0C5BE90980E7F444B5F7A12C9E9AC7A04CA81412822DD5AD1BE7C45D5032555E A070864245CF69266871FEB8CD1B7EDC30EF6D5 ``` -------------------------------- ### SHA-224 Hashing Example Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-224 hashing for the message 'test'. No specific setup is required. ```plaintext message = "test": k = 01ADEB94C19951B460A146B8275D81638C07735B38A525D76023AAF26AA8A058 590E1D5B1E78AB3C91608BDA67CFFBE6FC8A6CC r = 0B1527FFAA7DD7C7E46B628587A5BEC0539A2D04D3CF27C54841C2544E1BBDB4 2FDBDAAF8671A4CA86DFD619B1E3732D7BB56F2 s = 0442C68C044868DF4832C807F1EDDEBF7F5052A64B826FD03451440794063F52 B022DF304F47403D4069234CA9EB4C964B37C02 ``` -------------------------------- ### SHA-384 Hashing Example (test message) Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-384 hashing for the message 'test'. No specific setup is required. ```plaintext message = "test": k = 0A45B787DB44C06DEAB846511EEDBF7BFCFD3BD2C11D965C92FC195F67328F36 A2DC83C0352885DAB96B55B02FCF49DCCB0E2DA r = 04EFEB7098772187907C87B33E0FBBA4584226C50C11E98CA7AAC6986F8D3BE0 44E5B52D201A410B852536527724CA5F8CE6549 s = 09574102FEB3EF87E6D66B94119F5A6062950FF4F902EA1E6BD9E2037F33FF99 1E31F5956C23AFE48FCDC557FD6F088C7C9B2B3 ``` -------------------------------- ### Install NBitcoin Package Source: https://github.com/metacosa/nbitcoin/blob/master/docs/api/index.md Use this NuGet command to install the NBitcoin package for general use. ```powershell Install-Package NBitcoin ``` -------------------------------- ### Install NBitcoin.Altcoins Package Source: https://github.com/metacosa/nbitcoin/blob/master/docs/api/index.md Use this NuGet command to install the NBitcoin.Altcoins package for use with altcoins. ```powershell Install-Package NBitcoin.Altcoins ``` -------------------------------- ### SHA-512 Hashing Example (test message) Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-512 hashing for the message 'test'. No specific setup is required. ```plaintext message = "test": k = 0B90F8A0E757E81D4EA6891766729C96A6D01F9AEDC0D334932D1F81CC4E1973 A4F01C33555FF08530A5098CADB6EDAE268ABB5 r = 07E0249C68536AE2AEC2EC30090340DA49E6DC9E9EEC8F85E5AABFB234B6DA7D 2E9524028CF821F21C6019770474CC40B01FAF6 s = 08125B5A03FB44AE81EA46D446130C2A415ECCA265910CA69D55F2453E16CD7B 2DFA4E28C50FA8137F9C0C6CEE4CD37ABCCF6D8 ``` -------------------------------- ### SHA-512 Hashing Example Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-512 hashing for a given message. No specific setup is required beyond the message itself. ```plaintext message = "sample": k = 0750926FFAD7FF5DE85DF7960B3A4F9E3D38CF5A049BFC89739C48D42B34FBEE 03D2C047025134CC3145B60AFD22A68DF0A7FB2 r = 05D178DECAFD2D02A3DA0D8BA1C4C1D95EE083C760DF782193A9F7B4A8BE6FC5 C21FD60613BCA65C063A61226E050A680B3ABD4 s = 013B7581E98F6A63FBBCB3E49BCDA60F816DB230B888506D105DC229600497C3 B46588C784BE3AA9343BEF82F7C9C80AEB63C3B ``` -------------------------------- ### SHA-384 Hashing Example Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-384 hashing for a given message. No specific setup is required beyond the message itself. ```plaintext message = "sample": k = 0DA881BCE3BA851485879EF8AC585A63F1540B9198ECB8A1096D70CB25A104E2 F8A96B108AE76CB49CF34491ABC70E9D2AAD450 r = 07BC638B7E7CE6FEE5E9C64A0F966D722D01BB4BC3F3A35F30D4CDDA92DFC5F7 F0B4BBFE8065D9AD452FD77A1914BE3A2440C18 s = 06D904429850521B28A32CBF55C7C0FDF35DC4E0BDA2552C7BF68A171E970E67 88ACC0B9521EACB4796E057C70DD9B95FED5BFB ``` -------------------------------- ### Initialize Keys for Multisig Source: https://github.com/metacosa/nbitcoin/wiki/Examples This snippet shows how to create new Key objects for participants in a multisignature setup. Ensure all necessary keys are generated before proceeding with multisig transaction creation. ```csharp Key bob = new Key(); Key alice = new Key(); Key satoshi = new Key(); ``` -------------------------------- ### SHA-1 Signature Example (sample message) Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates a digital signature (k, r, s) generated using SHA-1 for the message 'sample'. ```plaintext With SHA-1, message = "sample": k = 2669FAFEF848AF67D437D4A151C3C5D3F9AA8BB66EDC35F090C9118F95BA0041 B0993BE2EF55DAAF36B5B3A737C40DB1F6E3D93D97B8419AD6E1BB8A5D4A0E9B 2E76832D4E7B862 r = 147D3EB0EDA9F2152DFD014363D6A9CE816D7A1467D326A625FC4AB0C786E1B7 4DDF7CD4D0E99541391B266C704BB6B6E8DCCD27B460802E0867143727AA4155 55454321EFE5CB6 s = 17319571CAF533D90D2E78A64060B9C53169AB7FC908947B3EDADC54C79CCF0A 7920B4C64A4EAB6282AFE9A459677CDA37FD6DD50BEF18709590FE18B923BDF7 4A66B189A850819 ``` -------------------------------- ### Create and Manage Bitcoind Nodes Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.TestFramework/README.md This snippet demonstrates how to create multiple bitcoind nodes, start them, generate blocks, and synchronize them. It's useful for setting up integration test environments. ```csharp using(var builder = NodeBuilder.Create()) { var node1 = builder.CreateNode(); var node2 = builder.CreateNode(); builder.StartAll(); node2.Generate(50); node2.Sync(node1); var bestblock1 = node1.CreateRPCClient().GetBestBlockHash(); var bestblock2 = node2.CreateRPCClient().GetBestBlockHash(); Assert.Equal(bestblock1, bestblock2); } ``` -------------------------------- ### Basic NBitcoin Usage in .NET Core Source: https://github.com/metacosa/nbitcoin/blob/master/docs/api/index.md This C# code snippet shows a basic example of using NBitcoin in a .NET Core console application, including generating a new private key and displaying its WIF format. ```csharp using System; using NBitcoin; namespace _125350929 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World! " + new Key().GetWif(Network.Main)); } } } ``` -------------------------------- ### SHA-224 Signature Example (sample message) Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates a digital signature (k, r, s) generated using SHA-224 for the message 'sample'. ```plaintext With SHA-224, message = "sample": k = 2EAFAD4AC8644DEB29095BBAA88D19F31316434F1766AD4423E0B54DD2FE0C05 E307758581B0DAED2902683BBC7C47B00E63E3E429BA54EA6BA3AEC33A94C9A2 4A6EF8E27B7677A r = 10F4B63E79B2E54E4F4F6A2DBC786D8F4A143ECA7B2AD97810F6472AC6AE2085 3222854553BE1D44A7974599DB7061AE8560DF57F2675BE5F9DD94ABAF3D47F1 582B318E459748B s = 3BBEA07C6B269C2B7FE9AE4DDB118338D0C2F0022920A7F9DCFCB7489594C03B ``` -------------------------------- ### Create Custom Node Builder for Altcoin Regtest Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Altcoins/README.md This example shows how to configure NodeBuilder to use specific altcoin binaries and network settings for regtest environments. This is crucial for testing custom altcoin integrations. ```csharp public static NodeBuilder Create([CallerMemberName] string caller = null) { return NodeBuilder.Create(NodeDownloadData.Litecoin.v0_15_1, Altcoins.AltNetworkSets.Litecoin.Regtest, caller); } ``` -------------------------------- ### NIST B-571 Private Key Example Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Represents a private key 'x' for the NIST B-571 curve. This value should be kept secret. ```plaintext private key: x = 028A04857F24C1C082DF0D909C0E72F453F2E2340CCB071F0E389BCA2575DA19 124198C57174929AD26E348CF63F78D28021EF5A9BF2D5CBEAF6B7CCB6C4DA82 4DD5C82CFB24E11 ``` -------------------------------- ### Get Litecoin Testnet Network Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Altcoins/README.md Use this to access the predefined network settings for Litecoin testnet. This is useful for interacting with the Litecoin test network. ```csharp Network network = NBitcoin.Altcoins.Litecoin.Instance.Testnet; ``` -------------------------------- ### NIST B-571 Public Key Example Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Represents a public key (Ux, Uy) for the NIST B-571 curve, derived from the private key 'x' and generator point 'G'. ```plaintext public key: U = xG Ux = 4B4B3CE9377550140B62C1061763AA524814DDCEF37B00CD5CDE94F7792BB0E9 6758E55DA2E9FEA8FF2A8B6830AE1D57A9CA7A77FCB0836BF43EA5454CDD9FEA D5CCFE7375C6A83 Uy = 4453B18F261E7A0E7570CD72F235EA750438E43946FBEBD2518B696954767AA7 849C1719E18E1C51652C28CA853426F15C09AA4B579487338ABC7F33768FADD6 1B5A3A6443A8189 ``` -------------------------------- ### Connect to Bitcoin Node via SOCKS5 Proxy Source: https://github.com/metacosa/nbitcoin/blob/master/README.md Example of establishing a connection to a Bitcoin node using NBitcoin, configured to route through a SOCKS5 proxy. Ensure Tor is running with SOCKS5 proxy on port 9050. ```csharp var connectionParameters = new NodeConnectionParameters(); connectionParameters.TemplateBehaviors.Add(new SocksSettingsBehavior(Utils.ParseEndpoint("localhost", 9050))); Node node = await Node.ConnectAsync(Network.Main, "7xnmrhmkvptbcvpl.onion:8333", connectionParameters); node.VersionHandshake(); ``` -------------------------------- ### Set up NBitcoin Project in .NET Core Source: https://github.com/metacosa/nbitcoin/blob/master/docs/api/index.md These commands demonstrate how to create a new .NET Core console application, add the NBitcoin package, and restore dependencies. ```bash mkdir MyProject cd MyProject dotnet new console dotnet add package NBitcoin dotnet restore ``` -------------------------------- ### Create and Run a .NET Core NBitcoin Project Source: https://github.com/metacosa/nbitcoin/blob/master/README.md Steps to create a new .NET Core console application, add the NBitcoin package, and restore dependencies. ```bash mkdir MyProject cd MyProject dotnet new console dotnet add package NBitcoin dotnet restore ``` ```bash dotnet run ``` -------------------------------- ### Run .NET Core Application Source: https://github.com/metacosa/nbitcoin/blob/master/docs/api/index.md Use this command to run your .NET Core application after setting up NBitcoin. ```bash dotnet run ``` -------------------------------- ### Build NBitcoin for Unity 3.5 Source: https://github.com/metacosa/nbitcoin/blob/master/docs/api/index.md Follow these command-line steps to clone, checkout, and build NBitcoin for Unity 3.5 compatibility. ```bash git clone https://github.com/MetacoSA/NBitcoin/ cd NBitcoin git checkout unity35 build-unity.bat ``` -------------------------------- ### Run Benchmarks and Generate Flamegraph on Windows Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Bench/README.md Use this command to run benchmarks and generate a flamegraph using ETW profiler on Windows. Replace `*GolombRiceFilters*` with the specific benchmark class name. ```powershell dotnet run -c Release -- --runtimes netcoreapp2.1 --filter *GolombRiceFilters* --profiler ETW ``` -------------------------------- ### Configure Visual Studio Code for Debugging NBitcoin Source Source: https://github.com/metacosa/nbitcoin/blob/master/README.md Add these configurations to your launch.json file in Visual Studio Code to enable debugging into NBitcoin's source code. This allows stepping through library code during debugging sessions. ```json "justMyCode": false, "symbolOptions": { "searchPaths": [ "https://symbols.nuget.org/download/symbols" ], "searchMicrosoftSymbolServer": true }, ``` -------------------------------- ### Compile NBitcoin for Unity Project Source: https://github.com/metacosa/nbitcoin/blob/master/README.md These commands outline the process to compile NBitcoin for use in a Unity project. It involves cloning the repository, publishing a .NET Standard 2.0 version, and removing runtime-specific folders. ```powershell git clone https://github.com/MetacoSA/NBitcoin/ cd NBitcoin/NBitcoin dotnet publish -c Release -f netstandard2.0 Remove-Item -Force -Recurse .\bin\Release\netstandard2.0\publish\runtimes\ ``` -------------------------------- ### SHA-256 Signature Generation with Message 'sample' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the k, r, and s values for a signature generated using SHA-256 with the message 'sample'. ```plaintext k = 0F79D53E63D89FB87F4D9E6DC5949F5D9388BCFE9EBCB4C2F7CE497814CF40E8 ``` -------------------------------- ### SHA-1 Signature Generation with Message 'sample' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the k, r, and s values for a signature generated using SHA-1 with the message 'sample'. ```plaintext k = 17F7E360B21BEAE4A757A19ACA77FB404D273F05719A86EAD9D7B3F4D5ED7B46 30584BB153CF7DCD5A87CCA101BD7EA9ECA0CE5EE27CA985833560000BB52B6B BE068740A45B267 r = 0767913F96C82E38B7146A505938B79EC07E9AA3214377651BE968B52C039D3E 4837B4A2DE26C481C4E1DE96F4D9DE63845D9B32E26D0D332725678E3CE57F66 8A5E3108FB6CEA5 s = 109F89F55FA39FF465E40EBCF869A9B1DB425AEA53AB4ECBCE3C310572F79315 F5D4891461372A0C36E63871BEDDBB3BA2042C6410B67311F1A185589FF4C987 DBA02F9D992B9DF ``` -------------------------------- ### SHA-384 Hashing with Message 'sample' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-384 hashing for the message 'sample', showing the k, r, and s values. ```plaintext k = 4DA637CB2E5C90E486744E45A73935DD698D4597E736DA332A06EDA8B26D5ABC 6153EC2ECE14981CF3E5E023F36FFA55EEA6D7 r = 562BB99EE027644EC04E493C5E81B41F261F6BD18FB2FAE3AFEAD91FAB8DD44A FA910B13B9C79C87555225219E44E72245BB7C s = 25BA5F28047DDDBDA7ED7E49DA31B62B20FD9C7E5B8988817BBF738B3F4DFDD2 DCD06EE6DF2A1B744C850DAF952C12B9A56774 ``` -------------------------------- ### SHA-512 Hashing with Message 'sample' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-512 hashing for the message 'sample', showing the k, r, and s values. ```plaintext k = 57055B293ECFDFE983CEF716166091E573275C53906A39EADC25C89C5EC8D7A7 E5629FCFDFAD514E1348161C9A34EA1C42D58C r = 16C7E7FB33B5577F7CF6F77762F0F2D531C6E7A3528BD2CF582498C1A48F2007 89E9DF7B754029DA0D7E3CE96A2DC760932606 s = 2729617EFBF80DA5D2F201AC7910D3404A992C39921C2F65F8CF4601392DFE93 3E6457EAFDBD13DFE160D243100378B55C290A ``` -------------------------------- ### SHA-224 Signature Generation with Message 'sample' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the k, r, and s values for a signature generated using SHA-224 with the message 'sample'. ```plaintext k = 0B599D068A1A00498EE0B9AD6F388521F594BD3F234E47F7A1DB6490D7B57D60 B0101B36F39CC22885F78641C69411279706F0989E6991E5D5B53619E43EFB39 7E25E0814EF02BC r = 010774B9F14DE6C9525131AD61531FA30987170D43782E9FB84FF0D70F093946 DF75ECB69D400FE39B12D58C67C19DCE96335CEC1D9AADE004FE5B498AB8A940 D46C8444348686A s = 06DFE9AA5FEA6CF2CEDC06EE1F9FD9853D411F0B958F1C9C519C90A85F6D24C1 C3435B3CDF4E207B4A67467C87B7543F6C0948DD382D24D1E48B3763EC27D4D3 2A0151C240CC5E0 ``` -------------------------------- ### Add NBitcoin Package to .NET Core Project Source: https://github.com/metacosa/nbitcoin/blob/master/README.md Use this command to add the NBitcoin package to your .NET Core project via the command line. ```bash dotnet add package NBitcoin ``` -------------------------------- ### Run Altcoin Tests with .NET CLI Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Altcoins/README.md Command to execute tests specifically for altcoins using the .NET CLI. It filters tests and disables parallelization for consistent results. Note the specified framework version. ```bash dotnet test NBitcoin.Tests.csproj --filter "Altcoins=Altcoins" -p:ParallelizeTestCollections=false --framework netcoreapp2.1 ``` -------------------------------- ### SHA-256 Hashing with Message 'test' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-256 hashing for the message 'test', showing the k, r, and s values. ```plaintext k = 251E32DEE10ED5EA4AD7370DF3EFF091E467D5531CA59DE3AA791763715E1169 AB5E18C2A11CD473B0044FB45308E8542F2EB0 r = 58075FF7E8D36844EED0FC3F78B7CFFDEEF6ADE5982D5636552A081923E24841 C9E37DF2C8C4BF2F2F7A174927F3B7E6A0BEB2 s = 0A737469D013A31B91E781CE201100FDE1FA488ABF2252C025C678462D715AD3 078C9D049E06555CABDF37878CFB909553FF51 ``` -------------------------------- ### Generate Litecoin Address Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Altcoins/README.md Demonstrates how to generate a Litecoin address using a given network. Ensure the correct network object is passed for the desired blockchain. ```csharp Console.WriteLine(new Key().PubKey.GetAddress(network)); ``` -------------------------------- ### SHA-1 Hashing with Message 'test' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-1 hashing for the message 'test', showing the k, r, and s values. ```plaintext k = 545453D8DC05D220F9A12EF322D0B855E664C72835FABE8A41211453EB8A7CFF 950D80773839D0043A46852DDA5A536E02291F r = 565648A5BAD24E747A7D7531FA9DBDFCB184ECFEFDB00A319459242B68D0989E 52BED4107AED35C27D8ECA10E876ACA48006C9 s = 7420BA6FF72ECC5C92B7CA0309258B5879F26393DB22753B9EC5DF905500A042 28AC08880C485E2AC8834E13E8FA44FA57BF18 ``` -------------------------------- ### SHA-512 Hashing with Message 'test' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-512 hashing for the message 'test', showing the k, r, and s values. ```plaintext k = 59527CE953BC09DF5E85155CAE7BB1D7F342265F41635545B06044F844ECB4FA 6476E7D47420ADC8041E75460EC0A4EC760E95 r = 1A32CD7764149DF79349DBF79451F4585BB490BD63A200700D7111B45DDA4140 00AE1B0A69AEACBA1364DD7719968AAD123F93 s = 582AB1076CAFAE23A76244B82341AEFC4C6D8D8060A62A352C33187720C8A37F DAC227E62758B11DF1562FD249941C1679F82 ``` -------------------------------- ### SHA-384 Hashing with Message 'test' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-384 hashing for the message 'test', showing the k, r, and s values. ```plaintext k = 11C540EA46C5038FE28BB66E2E9E9A04C9FE9567ADF33D56745953D44C1DC8B5 B92922F53A174E431C0ED8267D919329F19014 r = 1C5C88642EA216682244E46E24B7CE9AAEF9B3F97E585577D158C3CBC3C59825 0A53F6D46DFB1E2DD9DC302E7DA4F0CAAFF291 s = 1D3FD721C35872C74514359F88AD983E170E5DE5B31AFC0BE12E9F4AB2B2538C 7797686BA955C1D042FD1F8CDC482775579F11 ``` -------------------------------- ### SHA-224 Hashing with Message 'test' Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Demonstrates the output of SHA-224 hashing for the message 'test', showing the k, r, and s values. ```plaintext k = 3C5352929D4EBE3CCE87A2DCE380F0D2B33C901E61ABC530DAF3506544AB0930 AB9BFD553E51FCDA44F06CD2F49E17E07DB519 r = 251DFE54EAEC8A781ADF8A623F7F36B4ABFC7EE0AE78C8406E93B5C3932A8120 AB8DFC49D8E243C7C30CB5B1E021BADBDF9CA4 s = 77854C2E72EAA6924CC0B5F6751379D132569843B1C7885978DBBAA6678967F6 43A50DBB06E6EA6102FFAB7766A57C3887BD22 ``` -------------------------------- ### NIST K-571 Curve Key Pair Generation Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Details the parameters for a key pair generated on the NIST K-571 curve, including the prime modulus q, private key x, and public key components Ux and Uy. ```plaintext curve: NIST K-571 q = 2000000000000000000000000000000000000000000000000000000000000000 0000000131850E1F19A63E4B391A8DB917F4138B630D84BE5D639381E91DEB45 CFE778F637C1001 (qlen = 570 bits) private key: x = 0C16F58550D824ED7B95569D4445375D3A490BC7E0194C41A39DEB732C29396C DF1D66DE02DD1460A816606F3BEC0F32202C7BD18A32D87506466AA92032F131 4ED7B19762B0D22 public key: U = xG Ux = 6CFB0DF7541CDD4C41EF319EA88E849EFC8605D97779148082EC991C463ED323 19596F9FDF4779C17CAF20EFD9BEB57E9F4ED55BFC52A2FA15CA23BC62B7BF01 9DB59793DD77318 Uy = 1CFC91102F7759A561BD8D5B51AAAEEC7F40E659D67870361990D6DE29F6B4F7 E18AE13BDE5EA5C1F77B23D676F44050C9DBFCCDD7B3756328DDA059779AAE84 46FC5158A75C227 ``` -------------------------------- ### NIST B-571 Curve Parameters Source: https://github.com/metacosa/nbitcoin/blob/master/NBitcoin.Tests/data/determiniticECDSA.txt Defines the parameters for the NIST B-571 elliptic curve, including the prime modulus 'q' and its bit length. ```plaintext curve: NIST B-571 q = 3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFE661CE18FF55987308059B186823851EC7DD9CA1161DE93D5174D66E8 382E9BB2FE84E47 (qlen = 570 bits) ```