Skip to content

Commit bd87c5a

Browse files
committed
chore(galoisd): revert additional bls12381 functions
Signed-off-by: aeryz <[email protected]>
1 parent 92900ec commit bd87c5a

File tree

9 files changed

+75
-162
lines changed

9 files changed

+75
-162
lines changed

galoisd/cmd/galoisd/cmd/example_prove.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ import (
2727
provergrpc "galois/grpc/api/v3"
2828
)
2929

30-
const (
31-
flagBls12381 = "bls12381"
32-
)
33-
3430
func marshalValidators(validators []*tmtypes.SimpleValidator) ([]byte, error) {
3531
merkleTree := make([][]byte, len(validators))
3632
for i, val := range validators {
@@ -214,13 +210,7 @@ func ExampleProveCmd() *cobra.Command {
214210
},
215211
}
216212

217-
var res *provergrpc.ProveResponse
218-
if cmd.Flag(flagBls12381) != nil {
219-
res, err = client.ProveBls12381(ctx, &req)
220-
} else {
221-
res, err = client.Prove(ctx, &req)
222-
}
223-
213+
res, err := client.Prove(ctx, &req)
224214
if err != nil {
225215
return err
226216
}

galoisd/cmd/galoisd/cmd/query_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func QueryStats() *cobra.Command {
1616
Use: "query-stats [uri]",
1717
Args: cobra.ExactArgs(1),
1818
RunE: MakeCobra(func(ctx context.Context, client provergrpc.UnionProverAPIClient, cmd *cobra.Command, args []string) error {
19-
res, err := client.QueryStatsBls12381(ctx, &provergrpc.QueryStatsRequest{})
19+
res, err := client.QueryStats(ctx, &provergrpc.QueryStatsRequest{})
2020
if err != nil {
2121
log.Fatal(err)
2222
}

galoisd/grpc/api/v3/galois.pb.go

Lines changed: 35 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

galoisd/grpc/api/v3/galois_grpc.pb.go

Lines changed: 5 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)