Conversion of the QubicHelper as provided in https://github.com/qubic-li/wallet to an executable so as to be used in Windows, Linux and Mac desktops. Most probably a rust version of the Kangaroo12 and other implementations would be better but this will suffice for now.
Everything is packaged by pkg and turned in an executable (thus 35M in size per platform).
The application responds with JSON in stdout:
qubic-helper createPublicId aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Will result in :
{"status":"ok","publicId":"BZBQFLLBNCXEMGLOBHUVFTLUPLVCPQUASSILFABOFFBCADQSSUPNWLZBQEXK"}
qubic-helper createTransaction aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 10000 10000000
Will result in :
{"status":"ok","transaction":"H1kNA+YTvd7Ti0wIIKxEYV+RrxJDWYCz7ePAjDFaJUQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAnAAAAAAAAgJaYAAAAAAALYtCM56ZJoIzY0Iq4MFgeNH/HTNG/fNwEULHczxoEK4dF9CJmYobaRPP1GdGVSBR/a9EEyyVZiasSDfBk/QQA"}
Errors will result in
{"status":"error","error":"Error description"}
Everything is written in Typescript (and some javascript). Typescript is transpiled to Javascript and then bundled to a single file with esbuild. The esbuild generated file is the fed to pkg and the executables are created
- Run npm install.
- npm run bundle
- npm run build-windows
- npm run build-mac
- npm run build-mac-arm
- npm run build-linux