Closed camilog closed 3 months ago
I added the JSON variation to enable Helios to interface smoothly, so it only handles the simplest case since that is what they had implemented at the time. No integration happened, so you may view the json flag as deprecated if you like.
Note that there is a tool "vbt" that dumps byte tree as JSON if you wish to inspect something. Otherwise I think a simple binary format is better than adding a dependency to a parser.
That said, things have evolved since 2011 when I made some decisions if there is anything you find frustrating that seems simple to fix, then I welcome pull requests.
First, I convert a raw public key file to JSON:
$ vmnc -pkey -outi json publicKey publicKey_JSON
The generated file was correct:
{"g":"...","p":"...","q":"...","y":"..."}
But then, if I tried to do it backwards, it failed:
$ vmnc -pkey -ini json publicKey_JSON publicKey
The error is:
Thanks in regard!