C# a command line example of using SignedXml based on -secp256k1

Job ID: 33876880

Budget: $30 – $250 USD

Hi,

Here you will find an example code that works very well using RSA
https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.xml.signedxml.signingkey?view=dotnet-plat-ext-6.0

I need exactly the same but it must work with secp256k1

I'll provide you with 1) an example XML file, 2) the XML file after it was signed via a custom tool, and 3) a private key in pem format.
Your task is:
1-make the above example works with the private key using secp256k1 instead of RSA.
2- Sign the example XML file
3- verify the signed file you have generated.
4- Print out the signature, and the hash, they must be exactly the same as the signature and the hash that is in the provided signed file.

Cheers.
Related categories: .NET C# Programming Software Architecture