 |
January 05, 2016, 09:21:12 PM |
|
The following post represents one day's work:
*** pushed a new version
[6:06] I started rearranging the code and finding all OS dependencies. now there is a hierachy of portableness so depending on the OS, just a few functions are needed, and at the layer above all the OS looks the same
[6:07] iguana has been written with this in mind all along, but havent verified I was strictly following for a while
[6:07] so, the codebase is now ready for somebody to see if it will compile natively in windows
[6:08] pthreads is probably the trickiest dependency for windows, but there is a pthreads for visual studio
[6:08] alternatively, mingw or cygwin can be used to cross compile
[6:09] the time functions are a mess, even for unix it is pretty messed up, so there isnt a clean way to make time functions portable across all OS
[6:09] unless
[6:10] unless you use a library that has minimal dependencies. I had known about bernstein's libtai for a while, but never looked into it in depth until today. I refactored it and it is in iguana now
[6:10] actually I made a crypto777.a library file for common things
[6:11] i got it to resume downloading from what it finished, well almost. bundles that are partially done will be restarted, but completed bundles should be found and used
[6:11] and since I was too tired to do any difficult coding after all that, I added 30 more API calls
[6:13] i havent tested them much at all, they do hash calculations, about 15 like sha256, sha1, rmd160, ... and the hmac using those hash functions, along with some bitcoin specific ones like double sha256 and rmd160 of sha256
[6:14] since iguana automatically provides a pure json output, what this means is that all of these hashes and hmac's are available via the half dozen ways to sending in the API
[6:14] and it can be verified via the port 7778 page. there are many online hash sites, but I never found one with all of these variants in the same place
James
|