1
1
They say a image speaks louder then 1000 words so:
As you can see from the image above, this should work ? What am i missing here?
This is my encode function, http://cryptocoinjs.com/modules/currency/coinstring/
I can confirm the private key spitted out is in correct format for if i do a dump i get:
$ ./src/d-cli dumpprivkey WRSybD94sWugjAQ89zyvbLsnw76ovCYEGo
BxkN86fdFBN75Aat3WCDs9w6NRHCMJJvvrDgb44Vcc23f96ohFZ5

How does your
encode()function work? You probably aren't encoding it as base58 correctly or you are encoding the wrong thing (e.g. hex string instead of the bytes themselves). – Andrew Chow – 2018-03-16T20:18:14.137sorry i edited my question to tell about my encode function, http://cryptocoinjs.com/modules/currency/coinstring/ and i can confirm the spitted out key is in correct format, the PREFIX is 100% correct as you can see by the image and code reference, really struggling with this one :(
– scott – 2018-03-16T20:33:32.763You can see on the referenced encode() function that im sure im doing everything correct? – scott – 2018-03-16T20:39:49.913
the issue was in the encode() function thanks kindly – scott – 2018-03-16T21:00:37.900