Tuesday, October 1, 2024

script – NBitcoin would not produce similar TapRoot handle?

I’ve a script that works completely in creating an inscription taproot handle with Javascript https://gist.github.com/ChristianOConnor/fa07462990a74606f486f97031783e50. I dedicated the non-public key and inscription textual content to the code. There’s nothing within the pockets so it should not be a safety downside. The handle outputted by the script is tb1pzr0236kw9vnavfl6zjk4xvfsvptfwq2202newug2se5tsg2fmrhsa4hv7z.

Once more, I’ve examined the javascript code together with spending an inscription output and it really works completely. I unsuccessfully tried porting the above script to C#. It would not produce the proper handle. That is the C# script https://gist.github.com/ChristianOConnor/2399a864f38666a2a3305b9ad7d374d1 preloaded with the identical non-public key and inscription string. It incorrectly produces this handle: tb1p90cf5jsmvv2cwu7wq2k60pewtpu5xvlfypxwjeag4aq9yhaccgks68fc8j.

Can anybody repair my C# script in order that it produces the proper handle aka tb1pzr0236kw9vnavfl6zjk4xvfsvptfwq2202newug2se5tsg2fmrhsa4hv7z.

This may be unpaid, however when you can repair the C# script I am going to open supply it and MIT license the code. P.S. Might you please perpetually MIT license your repair for the C# script.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles