I’ve been working on an extension for PHP which wraps libsecp256k1, and think it’s just about complete. I noticed the PR’s for java bindings, and I wondered if it might be worth moving the code here?
I’m not sure if anyone else is developing these, but mainly asking since I’m experimenting with packaging the extension as .deb package, but I need to ensure that libsecp256k1 is installed on the system as well.
I know it’s quite early for a secp256k1-dev package in apt, but since I’m now considering gitian builds to produce a .deb for this extension, the same could be done for the library itself. If we keep the sources here we can build each binding/release in the one gitian build.
The bindings are here: https://github.com/Bit-Wasp/secp256k1-php, and there are tests for pretty much everything besides the privkey_import/export functions(). Yet to include the edge cases (r/s = 0, etc), but it’s standing up pretty well. It is my first foray into C in a while, so I’d appreciate all the feedback I can get!
Anyway, interested to hear what people think, I can follow up with a PR if people are happy enough!