Refactor ZKInputs & add struct initialization

Refactor ZKInputs & add struct initialization & add BJJCompressedTo256BigInts util
This commit is contained in:
arnaucube
2020-09-08 18:41:32 +02:00
parent 230adfeb73
commit a7fe80f150
5 changed files with 319 additions and 100 deletions

15
common/zk_test.go Normal file
View File

@@ -0,0 +1,15 @@
package common
import (
"encoding/json"
"testing"
"github.com/stretchr/testify/require"
)
func TestZKInputs(t *testing.T) {
zki := NewZKInputs(100, 24, 32)
_, err := json.Marshal(zki)
require.Nil(t, err)
// fmt.Println(string(s))
}