build: Use go embed for srs-inner-product.json

This commit is contained in:
Łukasz Magiera 2021-06-02 15:12:26 +02:00
parent 55f65702b2
commit e1dc7ad6eb

View File

@ -7,10 +7,13 @@ import (
//go:embed proof-params/parameters.json
var params []byte
//go:embed proof-params/srs-inner-product.json
var srs []byte
func ParametersJSON() []byte {
return params
}
func SrsJSON() []byte {
return rice.MustFindBox("proof-params").MustBytes("srs-inner-product.json")
return srs
}