Open truedat101 opened 3 years ago
About 25% through the port. My approach is take the C library and port that to native D. It might be easier to wrap the C library but there are a couple of weird things in the makefile that actually don't build properly to begin with. The C++ code is possibly cleaner, but I always fear C++ magic that people try to use that makes code hard to understand.
So far, the only strangeness found is in an argument to a struct[] that gets downcast to a pointer to a struct, which somehow that is allowed by a C compiler. I don't fully grasp that. But no matter. Some question I have is whether to get the D functions done as static or not. Need to implement all of the private functions in the QRCodegen part of the implementation.
Will revisit this code friday.
I've got a broken port done. It needs debugging and some rewrite. Also, it needs the more extensive QR code test program ported. I estimate maybe 8-20 hours to run through all of that. I am going to get back to the crypto stuff for a bit and will circle back on this.
This is on my fork: https://github.com/IoTone/QR-Code-generator
Get this done first, and then start looking at the porting project around the paperwallet generator for ETH, which we want to make work with NEM.