Fix binary parser bug, make go.bin format deterministic

This commit is contained in:
Eduard S
2020-05-22 15:39:15 +02:00
parent 94dc934f62
commit 6e31deb5b8
4 changed files with 32 additions and 9 deletions

1
cli/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
cli

View File

@@ -159,7 +159,9 @@ func cmdConvert(provingKeyPath, provingKeyBinPath string) error {
if err != nil {
return err
}
err = ioutil.WriteFile(provingKeyBinPath, pkGBin, 0644)
if err = ioutil.WriteFile(provingKeyBinPath, pkGBin, 0644); err != nil {
return err
}
return nil
}